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-3.0-annotations.md.

JAX-RS 3.x

OpenTelemetry Java agent instrumentation

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

  • Name: jaxrs-3.0-annotations
  • Scope: io.opentelemetry.jaxrs-3.0-annotations
  • Target versions: jakarta.ws.rs:jakarta.ws.rs-api:[3.0.0,)
  • Library: https://jakarta.ee/specifications/restful-ws/3.0/

Telemetry

  • Span attributes: code.function, code.namespace

Configuration

OptionTypeDefaultDescription
otel.instrumentation.common.experimental.controller-telemetry.enabledbooleanfalseEnables the creation of experimental controller spans.
otel.instrumentation.jaxrs.experimental-span-attributesbooleanfalseEnables the experimental jaxrs.canceled span attribute.

Data

  • JSON: /data/javaagent/instrumentations/jaxrs-3.0-annotations/jaxrs-3.0-annotations-506176134a63.json
  • Explore: /java-agent/instrumentation/jaxrs-3.0-annotations