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/spring-web-6.0.md.

Spring Web

OpenTelemetry Java agent instrumentation

This instrumentation enriches HTTP client spans with URL template information for Spring's RestTemplate 6.0+.

  • Name: spring-web-6.0
  • Scope: io.opentelemetry.spring-web-6.0
  • Target versions: org.springframework:spring-web:[6.0.0,)
  • Library: https://github.com/spring-projects/spring-framework

Configuration

OptionTypeDefaultDescription
java.common.http.client.url_template_ruleslistRules for deriving low-cardinality URL templates (routes) from HTTP client request URLs. Only applied when experimental HTTP client telemetry is enabled.
otel.instrumentation.http.client.emit-experimental-telemetrybooleanfalseEnables the capture of experimental HTTP client telemetry, including URL template as the span name.

Data

  • JSON: /data/javaagent/instrumentations/spring-web-6.0/spring-web-6.0-0b61152916b1.json
  • Explore: /java-agent/instrumentation/spring-web-6.0