Document how to customize tags in micrometer-java11 HttpClient instrumentation#7593
Open
won-seoop wants to merge 1 commit into
Open
Document how to customize tags in micrometer-java11 HttpClient instrumentation#7593won-seoop wants to merge 1 commit into
won-seoop wants to merge 1 commit into
Conversation
…mentation Adds a "Customizing observations" section to the Java HttpClient reference documentation covering: - A table of the default low-cardinality tags produced by the instrumentation (method, uri, status, outcome) - A code example showing how to extend DefaultHttpClientObservationConvention to add or override tags - A code example showing how to register the custom convention via MicrometerHttpClient.instrumentationBuilder().customObservationConvention() Closes micrometer-metricsgh-4962 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4962
The Java HttpClient reference page described how to instrument an
HttpClientbut didn't explain what tags are emitted by default or how to add/override them.Changes
Added a Customizing observations section to
docs/modules/ROOT/pages/reference/java-httpclient.adocwith:Default tags table — documents the four low-cardinality key values produced by
DefaultHttpClientObservationConvention(method,uri,status,outcome).Custom convention example — shows how to extend
DefaultHttpClientObservationConventionand overridegetLowCardinalityKeyValuesto add an extra tag.Builder usage example — shows how to register the custom convention via
MicrometerHttpClient.instrumentationBuilder().customObservationConvention(...).Test plan
./gradlew :docs:antora) and verify the new section renders correctly on the Java HttpClient reference page🤖 Generated with Claude Code