Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Dec 1, 2025

Motivation:

The metrics SPI before the tracing SPI, it does not take in account the request context unlike the tracing SPI. We can definitely introduce its support by passing the context as part of the metrics SPI event signal.

Changes:

  • Overload appropriate metrics SPI events with a signature augmented with the Vert.x context
  • Deprecate for removal in Vertx 6.0 the original versions
  • Implement and test the behavior

@vietj vietj added this to the 5.1.0 milestone Dec 1, 2025
@vietj vietj self-assigned this Dec 1, 2025
@vietj vietj force-pushed the http-request-context-for-metrics branch from cfda4e0 to 7b96d53 Compare December 1, 2025 11:23
… and HTTP requests.

Motivation:

The metrics SPI before the tracing SPI, it does not take in account the request context unlike the tracing SPI. We can definitely introduce its support by passing the context as part of the metrics SPI event signal.

Changes:

- Overload appropriate metrics SPI events with a signature augmented with the Vert.x context
- Deprecate for removal in Vertx 6.0 the original versions
- Implement and test the behavior
@vietj vietj force-pushed the http-request-context-for-metrics branch from 7b96d53 to 34f19ce Compare December 1, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants