Skip to content

Document metrics published by the micrometer module#3370

Open
seonwoo-jung wants to merge 1 commit into
OpenFeign:masterfrom
seonwoo-jung:docs/2248-micrometer-metrics
Open

Document metrics published by the micrometer module#3370
seonwoo-jung wants to merge 1 commit into
OpenFeign:masterfrom
seonwoo-jung:docs/2248-micrometer-metrics

Conversation

@seonwoo-jung
Copy link
Copy Markdown

Adds a new micrometer/README.md that documents the metrics published by MicrometerCapability and the observation published by MicrometerObservationCapability, picking up the request from the maintainer in #2248.

What's documented

  • Every metric emitted by MicrometerCapability — name, type (Timer / Counter / DistributionSummary), where it's recorded, and the per-metric extra tags. Covers the feign.Feign.*, feign.Client.*, feign.AsyncClient.*, feign.codec.Encoder.* and feign.codec.Decoder.* families.
  • The common tags injected by FeignMetricTagResolver (client, method, host, exception_name, root_cause_name).
  • The http.client.requests observation produced by MicrometerObservationCapability, the key values populated by DefaultFeignObservationConvention, and the additional KeyNames declared on FeignObservationDocumentation.
  • Brief usage snippets for both capabilities, including how to pass a custom MeterRegistry / common tags or a custom FeignObservationConvention.

The main README.md's Micrometer section now links to the new module README so the existing example stays minimal.

Notes for reviewers

  • One naming quirk is called out in the table: feign.codec.Encoder.response_size is recorded by MeteredEncoder against template.body().length, i.e. it actually measures the request body. The PR documents this honestly rather than silently aliasing or renaming.
  • All facts were derived from the code in micrometer/src/main/java/feign/micrometer/ rather than guesswork; happy to adjust wording if anything reads inaccurately.

Fixes #2248

Adds a module-level README under micrometer/ that lists every metric
emitted by MicrometerCapability (timers, counters, distribution
summaries), its tags, and the observation emitted by
MicrometerObservationCapability together with the keys carried by the
default convention. The main README's Micrometer section now links to
this reference.

Fixes OpenFeign#2248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation for the metrics reported to micrometer when using MicrometerCapability

1 participant