OTEL shared variables
OTEL_ENABLED
- Required
-
No
- Description
-
Attaches the OpenTelemetry Java agent to the JVM
- Defaults to
-
false
OTEL_AGENT_LOGGING_LEVEL
- Required
-
Yes, if OTEL_ENABLED is true
- Description
-
Sets the logging level of the OpenTelemetry Java agent
- Defaults to
-
N/A
OTEL_EXPORTER_OTLP_HEADERS
- Required
-
Yes, if OTEL_ENABLED is true
- Description
-
Sets authentication headers used by the OpenTelemetry OTLP exporter to authenticate against the monitoring backend. Typically, Authorization=Bearer <token>
- Defaults to
-
N/A
OTEL_RESOURCE_ATTRIBUTES
- Required
-
Yes, if OTEL_ENABLED is true
- Description
-
Sets the resource attributes. Typically 'service.name=<serviceName>,service.version=<version>,deployment.environment=<host>'
- Defaults to
-
N/A
OTEL_EXPORTER_OTLP_ENDPOINT
- Required
-
Yes, if OTEL_ENABLED is true
- Description
-
Endpoint of the monitoring backend
- Defaults to
-
N/A
OTEL_LOGS_EXPORTER
- Required
-
No
- Description
-
Specifies which exporter is used for logs
- Defaults to
-
none
OTEL_METRICS_EXPORTER
- Required
-
No
- Description
-
Specifies which exporter is used for metrics
- Defaults to
-
otlp
OTEL_TRACES_EXPORTER
- Required
-
No
- Description
-
Specifies which exporter is used for traces
- Defaults to
-
otlp
OTEL_EXPORTER_OTLP_PROTOCOL
- Required
-
No
- Description
-
Specifies the OTLP transport protocol to be used for all telemetry data
- Defaults to
-
grpc
OTEL_TRACES_SAMPLER
- Required
-
No
- Description
-
Specifies the Sampler used to sample traces by the SDK
- Defaults to
-
parentbased_always_on
OTEL_TRACES_SAMPLER_ARG
- Required
-
No
- Description
-
Specifies arguments, if applicable, to the sampler defined in by OTEL_TRACES_SAMPLER. The specified value will only be used if OTEL_TRACES_SAMPLER is set. Each Sampler type defines its own expected input, if any. Invalid or unrecognized input is logged as an error.
- Defaults to
-
1.0