Skip to content

Add WebFlux OpenTelemetry observation convention - #37131

Open
mateo-maza wants to merge 1 commit into
spring-projects:mainfrom
mateo-maza:main
Open

Add WebFlux OpenTelemetry observation convention#37131
mateo-maza wants to merge 1 commit into
spring-projects:mainfrom
mateo-maza:main

Conversation

@mateo-maza

Copy link
Copy Markdown

Description

Provide the WebFlux counterpart of the OpenTelemetry HTTP server
observation convention introduced for Servlet HTTP server observations.

The implementation adds:

  • OpenTelemetryServerRequestObservationConvention
  • OpenTelemetryServerHttpObservationDocumentation
  • unit tests for OpenTelemetry semantic convention mappings
  • an integration test covering convention selection through WebHttpHandlerBuilder

The implementation also handles WebFlux-specific HTTP status, connection-abort,
and request-path behavior.

Notably, url.path records the request path without the query string, while
http.route records the matched route pattern.

Tests

  • ./gradlew :spring-web:test
  • Checkstyle

Closes gh-36396

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 12, 2026
Signed-off-by: Mateo Maza <mateomaza.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create OpenTelemetry convention variants for WebFlux

2 participants