# JBoss RESTEasy 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 RESTEasy (controller spans are disabled by default).

- **Name**: `jaxrs-2.0-resteasy-3.1`
- **Scope**: `io.opentelemetry.jaxrs-2.0-resteasy-3.1`
- **Target versions**: `org.jboss.resteasy:resteasy-core:[4.0.0.Final,6)`, `org.jboss.resteasy:resteasy-jaxrs:[3.1.0.Final,3.5.0.Final)`
- **Library**: https://resteasy.dev/

## 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-resteasy-3.1/jaxrs-2.0-resteasy-3.1-732d8e8f523a.json](/data/javaagent/instrumentations/jaxrs-2.0-resteasy-3.1/jaxrs-2.0-resteasy-3.1-732d8e8f523a.json)
- **Explore**: [/java-agent/instrumentation/jaxrs-2.0-resteasy-3.1](/java-agent/instrumentation/jaxrs-2.0-resteasy-3.1)
