Skip to content

Commit

Permalink
use common tags
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Feb 23, 2024
1 parent 7dc8233 commit bcaf38c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public ObservedAspect observedAspect(ObservationRegistry observationRegistry) {

@Bean
public ObservationFilter observationFilter(
@Value("${spring.application.name}") String service,
@Value("${ovsx.metrics.environment:development}") String environment,
@Value("${ovsx.metrics.instance:local}") String instance
@Value("${management.metrics.tags.application:app}") String service,
@Value("${management.metrics.tags.environment:development}") String environment,
@Value("${management.metrics.tags.instance:local}") String instance
) {
return context -> context
.addLowCardinalityKeyValue(KeyValue.of("service.name", service))
Expand Down

0 comments on commit bcaf38c

Please sign in to comment.