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
Align http client tags between httpclient and okhttp (#1702)
Apache http client metrics prefixed tags about the target being called with `target.`, while the OkHttp client used `host`. Not only is `host` likely to conflict with a configured common tag, but it differs from the other http client implementation we have metrics for, which can be confusing for users looking at and possibly comparing these metrics.
This adds the same `target.` prefixed tags for the OkHttp metrics, namely `host`, `port`, `scheme`. It keeps the previous `host` tag by default for backwards compatibility. However, the `host` tag can be opted out of by using the new `includeHostTag` method on the Builder.
Co-authored-by: Tommy Ludwig <[email protected]>
Copy file name to clipboardExpand all lines: micrometer-core/src/main/java/io/micrometer/core/instrument/binder/okhttp3/OkHttpMetricsEventListener.java
Copy file name to clipboardExpand all lines: micrometer-core/src/test/java/io/micrometer/core/instrument/binder/okhttp3/OkHttpMetricsEventListenerTest.java
0 commit comments