-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty Client instrumentation with Observation API #3416
Conversation
333d4a4
to
132b1d9
Compare
Currently, we don't have the URI keyvalue available on start because the mapping function is based on the |
In order to solve the problem with not being able to tag URI on start, I introduced a uri mapping function that takes a I tried to be careful about introducing the new mapping function in a way that is backwards compatible and guide users with deprecations. The previous tests in JettyClientMetricsTest are passing without changing anything there. |
Allow configuring an ObservationRegistry so that the JettyClientMetrics can instrument with Observation API in addition to its previously existing functionality.
Needed to update JettyClientKeyValues to handle the case when the result was null, which will always happen when getting the low cardinality tags for the LongTaskTimer at the start of timing. For now, I've updated to return the full set of tags with an UNKNOWN value for things that can't be derived with a null result.
Adds configuring a uri mapping function that takes a request and result, which is needed for tagging URI on start as opposed to only on stop. This intends to be backwards compatible with deprecations pointing users at the new API.
b8d666a
to
7569065
Compare
micrometer-core/src/main/java/io/micrometer/core/instrument/binder/http/Outcome.java
Show resolved
Hide resolved
Updates the since version in JavaDocs and adds the ObservationDocumentation implementation. It is still not used by ObservationOrTimerCompatibleInstrumentation but that can be updated separately.
I noticed when working on this that This is ready for review now. |
Allow configuring an ObservationRegistry so that the JettyClientMetrics can instrument with Observation API in addition to its previously existing functionality.
TODO: