Eclipse Jersey JAX-RS 3.x
OpenTelemetry Java agent instrumentation
This instrumentation enriches HTTP server spans with route information, and enables controller spans for JAX-RS methods when using Jersey (controller spans are disabled by default).
- Name:
jaxrs-3.0-jersey-3.0 - Scope:
io.opentelemetry.jaxrs-3.0-jersey-3.0 - Target versions:
org.glassfish.jersey.core:jersey-server:[3.0.0,) - Library: https://eclipse-ee4j.github.io/jersey/
Telemetry
When default
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | code.function (STRING), code.namespace (STRING) |
When otel.instrumentation.jaxrs.experimental-span-attributes=true
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | code.function (STRING), code.namespace (STRING), jaxrs.canceled (BOOLEAN) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.common.controller-telemetry.enabled | boolean | false | Enables the creation of experimental controller spans. |
otel.instrumentation.common.experimental.controller-telemetry.enabled | boolean | false | Deprecated: use otel.instrumentation.common.controller-telemetry.enabled instead. This setting is ignored under v3-preview and will be removed in 3.0. |
otel.instrumentation.jaxrs.experimental-span-attributes | boolean | false | Enables the experimental jaxrs.canceled span attribute. |