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-cloud-gateway-2.0.md.

Spring Cloud Gateway

OpenTelemetry Java agent instrumentation

This instrumentation enhances tracing for Spring Cloud Gateway. It does not generate any telemetry on its own, but rather enriches existing traces produced by other instrumentations like Netty and Spring WebFlux with Spring Cloud Gateway-specific attributes.

  • Name: spring-cloud-gateway-2.0
  • Scope: io.opentelemetry.spring-cloud-gateway-2.0
  • Target versions: org.springframework.cloud:spring-cloud-starter-gateway-server-webflux:[4.3.0,), org.springframework.cloud:spring-cloud-starter-gateway:[2.0.0.RELEASE,)
  • Library: https://github.com/spring-cloud/spring-cloud-gateway

Configuration

OptionTypeDefaultDescription
otel.instrumentation.spring-cloud-gateway.experimental-span-attributesbooleanfalseEnables experimental spring-cloud-gateway.route attributes (e.g., spring-cloud-gateway.route.id, spring-cloud-gateway.route.uri, etc.) on spans.

Data

  • JSON: /data/javaagent/instrumentations/spring-cloud-gateway-2.0/spring-cloud-gateway-2.0-ceb83eb1a1f4.json
  • Explore: /java-agent/instrumentation/spring-cloud-gateway-2.0