# Apache CXF JAX-RS 2.x

<!-- llms-txt-link: /llms.txt -->

> 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

- **Span attributes**: `code.function`, `code.namespace`, `jaxrs.canceled`

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `otel.instrumentation.common.experimental.controller-telemetry.enabled` | boolean | false | Enables the creation of experimental controller spans. |
| `otel.instrumentation.jaxrs.experimental-span-attributes` | boolean | false | Enables the experimental `jaxrs.canceled` span attribute. |

## Data

- **JSON**: [/data/javaagent/instrumentations/jaxrs-2.0-cxf-3.2/jaxrs-2.0-cxf-3.2-a83c8f89a27a.json](/data/javaagent/instrumentations/jaxrs-2.0-cxf-3.2/jaxrs-2.0-cxf-3.2-a83c8f89a27a.json)
- **Explore**: [/java-agent/instrumentation/jaxrs-2.0-cxf-3.2](/java-agent/instrumentation/jaxrs-2.0-cxf-3.2)
