Skip to content

Conversation

yybmion
Copy link

@yybmion yybmion commented Jul 27, 2025

Adds SmartKeyName API to provide automatic fallback handling for KeyValues, ensuring consistent key sets across observations as required by Prometheus.

  • SmartKeyName<C> class with required(), optional(), and withFallback() factory methods
  • KeyValues.of() and KeyValues.and() methods to support SmartKeyName integration
  • Comprehensive test coverage for all SmartKeyName scenarios

Closes #6564

- Add SmartKeyName class with required/optional/withFallback factory methods
- Add KeyValues.of() and and() methods for SmartKeyName integration
- Support automatic fallback handling to ensure consistent key sets
- Add comprehensive test coverage for all SmartKeyName scenarios

Fixes micrometer-metrics#6564

Signed-off-by: yybmion <[email protected]>
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.

Add API support for providing fallback for KeyValues
1 participant