0

I successfully configured New Relic with micrometer, but I've observed that there is no application name sent along.

I would like to include it in order to be able filter on different environments.

pixel
  • 24,905
  • 36
  • 149
  • 251

1 Answers1

0

I've managed to retrieve app_name from New Relic using newrelic-api:

NewRelic.getAgent().config.getValue("app_name")

Having this value I've just passed it to commonTags inside MeterRegistryCustomizer<MeterRegistry>

pixel
  • 24,905
  • 36
  • 149
  • 251