You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MicrometerHttpClientInterceptor does not support the outcome tag. io.micrometer.core.instrument.binder.httpcomponents.hc5.MicrometerHttpClientInterceptor publishes to the same meter as io.micrometer.core.instrument.binder.httpcomponents.hc5.MicrometerHttpRequestExecutor - httpcomponents.httpclient.request - using a different set of tags. When prometheus is used as registry, one of the mentioned measurements are silently dropped.
Environment
Micrometer version 1.11.0-RC1
Micrometer registry prometheus
Java version: 17
To Reproduce
How to reproduce the bug:
Instrument a HttpAsyncClient using the MicrometerHttpClientInterceptor and an HttpClient using MicrometerHttpRequestExecutor in the same application. Export the measurements to prometheus.
Expected behavior
The outcome Tag is supported when instrumenting HttpAsyncClient using the MicrometerHttpClientInterceptor. Both instrumentations support an identical set of Tags.
Additional context #877 will be triggered by the absence of the outcome Tag.
The text was updated successfully, but these errors were encountered:
Thank you for the report. It looks like we missed that instrumentation in #3732. Would you be interested in contributing a fix to add the outcome tag to MicrometerHttpClientInterceptor?
Thank you for the report. It looks like we missed that instrumentation in #3732. Would you be interested in contributing a fix to add the outcome tag to MicrometerHttpClientInterceptor?
Thanks for your quick response. I filed a fix in #3791.
Adds the `outcome` tag to align with the synchronous Apache Http Client instrumentation. Adds instrumentation verification tests to ensure instrumentation is in line with base expectations for all HTTP clients (this would have caught the missing `outcome` tag when we aligned on adding that previously).
Resolvesgh-3790
Co-authored-by: Tommy Ludwig <8924140+shakuzen@users.noreply.github.com>
Describe the bug
MicrometerHttpClientInterceptor does not support the outcome tag.
io.micrometer.core.instrument.binder.httpcomponents.hc5.MicrometerHttpClientInterceptor
publishes to the same meter asio.micrometer.core.instrument.binder.httpcomponents.hc5.MicrometerHttpRequestExecutor
- httpcomponents.httpclient.request - using a different set of tags. When prometheus is used as registry, one of the mentioned measurements are silently dropped.Environment
To Reproduce
How to reproduce the bug:
Instrument a
HttpAsyncClient
using theMicrometerHttpClientInterceptor
and anHttpClient
usingMicrometerHttpRequestExecutor
in the same application. Export the measurements to prometheus.Expected behavior
The outcome Tag is supported when instrumenting
HttpAsyncClient
using theMicrometerHttpClientInterceptor
. Both instrumentations support an identical set of Tags.Additional context
#877 will be triggered by the absence of the outcome Tag.
The text was updated successfully, but these errors were encountered: