Skip to content

Create configuration property for common low cardinality KeyValues in Observations  #33241

@bclozel

Description

@bclozel
Member

Currently, Spring Boot automatically registers Metrics Tags for the management.metrics.tags.* configuration properties.
Such values are applied to all outgoing metrics, thanks to a MeterFilter.

We should consider deprecating this property and replacing it with a new management.observations.keyvalues.*. This would apply properties as low cardinality KeyValues for all outgoing Observations (so, not just Metrics). This can be applied using a ObservationFilter bean, in a similar fashion.

Activity

added this to the 3.1.x milestone on Nov 17, 2022
modified the milestones: 3.1.x, 3.2.x on May 16, 2023
self-assigned this
on Jun 13, 2023
modified the milestones: 3.2.x, 3.2.0-M1 on Jun 13, 2023
mhalbritter

mhalbritter commented on Jun 13, 2023

@mhalbritter
Contributor

I've deprecated management.metrics.tags.* and added a new property management.observations.key-values.*.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @scottfrederick@bclozel@mhalbritter

      Issue actions

        Create configuration property for common low cardinality KeyValues in Observations · Issue #33241 · spring-projects/spring-boot