-
Installed Jaeger v1.12.0 or above. See instructions at [installing-the-jaeger-tracing-tool_tracing-che]
For Jaeger tracing to work, enable the following environment variables in your Che deployment:
# Activating Che tracing modules
CHE_TRACING_ENABLED=true
# Following variables are the basic Jaeger client library configuration.
JAEGER_ENDPOINT="http://jaeger-collector:14268/api/traces"
# Service name
JAEGER_SERVICE_NAME="che-server"
# URL to remote sampler
JAEGER_SAMPLER_MANAGER_HOST_PORT="jaeger:5778"
# Type and param of sampler (constant sampler for all traces)
JAEGER_SAMPLER_TYPE="const"
JAEGER_SAMPLER_PARAM="1"
# Maximum queue size of reporter
JAEGER_REPORTER_MAX_QUEUE_SIZE="10000"
To enable the following environment variables:
-
In the
yamlsource code of the Che deployment, add the following configuration variables underspec.server.customCheProperties.customCheProperties: CHE_TRACING_ENABLED: 'true' JAEGER_SAMPLER_TYPE: const DEFAULT_JAEGER_REPORTER_MAX_QUEUE_SIZE: '10000' JAEGER_SERVICE_NAME: che-server JAEGER_ENDPOINT: 'http://jaeger-collector:14268/api/traces' JAEGER_SAMPLER_MANAGER_HOST_PORT: 'jaeger:5778' JAEGER_SAMPLER_PARAM: '1' -
Edit the
JAEGER_ENDPOINTvalue to match the name of the Jaeger collector service in your deployment.From the left menu of the main OpenShift Container Platform screen, obtain the value of JAEGER_ENDPOINT by navigation to Networking → Services. Alternatively, execute the following
occommand:$ oc get services
The requested value is included in the service name that contains the
collectorstring.
-
For additional information about custom environment properties and how to define them in CheCluster Custom Resource, see Advanced configuration options.
-
For custom configuration of Jaeger, see the list of Jaeger client environment variables.