Skip to content

docs: clarify SpelValueExpressionResolver is not in Micrometer's public API#7595

Open
won-seoop wants to merge 1 commit into
micrometer-metrics:mainfrom
won-seoop:doc-spelvalueexpressionresolver-clarification
Open

docs: clarify SpelValueExpressionResolver is not in Micrometer's public API#7595
won-seoop wants to merge 1 commit into
micrometer-metrics:mainfrom
won-seoop:doc-spelvalueexpressionresolver-clarification

Conversation

@won-seoop

Copy link
Copy Markdown

Problem

The @MeterTag sections in timers.adoc and counters.adoc reference new SpelValueExpressionResolver(), but SpelValueExpressionResolver only exists in the documentation test module (io.micrometer.docs) and is not part of Micrometer's public API. Users who copy the snippet get a compile error.

Changes

  • timers.adoc: Add a NOTE after the resolver setup block explaining that SpelValueExpressionResolver is docs-only, followed by:
    • A SpEL-backed implementation example for Spring users
    • A simple toString() fallback for applications that don't need SpEL evaluation
  • counters.adoc: Add a shorter NOTE with a cross-reference to the @Timed section where the full implementation is shown

Closes #6465

🤖 Generated with Claude Code

…ic API

The @MeterTag examples referenced SpelValueExpressionResolver which is
only available in the docs test module, not Micrometer's public API.
Users who copy the snippet get a compile error.

- Add a NOTE in timers.adoc explaining the class is docs-only and
  showing both a SpEL-backed implementation and a simple toString fallback
- Add a shorter NOTE in counters.adoc cross-referencing the same example

Closes micrometer-metrics#6465

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Missing class SpelValueExpressionResolver from documentation

1 participant