This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/jaxrs-2.0-cxf-3.2.md.

Apache CXF JAX-RS 2.x

OpenTelemetry Java agent instrumentation

This instrumentation enriches HTTP server spans with route information, and enables controller spans for JAX-RS methods when using Apache CXF (controller spans are disabled by default).

  • Name: jaxrs-2.0-cxf-3.2
  • Scope: io.opentelemetry.jaxrs-2.0-cxf-3.2
  • Target versions: org.apache.cxf:cxf-rt-frontend-jaxrs:[3.2,4), org.apache.tomee:openejb-cxf-rs:(8,)
  • Library: https://cxf.apache.org/

Telemetry

When default

Spans

Span kindAttributes
INTERNALcode.function (STRING), code.namespace (STRING)

When otel.instrumentation.jaxrs.experimental-span-attributes=true

Spans

Span kindAttributes
INTERNALcode.function (STRING), code.namespace (STRING), jaxrs.canceled (BOOLEAN)

Configuration

OptionTypeDefaultDescription
otel.instrumentation.common.controller-telemetry.enabledbooleanfalseEnables the creation of experimental controller spans.
otel.instrumentation.common.experimental.controller-telemetry.enabledbooleanfalseDeprecated: 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-attributesbooleanfalseEnables the experimental jaxrs.canceled span attribute.

Data

  • JSON (latest): /data/javaagent/instrumentations/jaxrs-2.0-cxf-3.2/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/jaxrs-2.0-cxf-3.2/jaxrs-2.0-cxf-3.2-af619a745686.json
  • Explore: /java-agent/instrumentation/jaxrs-2.0-cxf-3.2