Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用千分尺成功配置了 New Relic,但我观察到没有发送任何应用程序名称。
我想包括它以便能够过滤不同的环境。
我设法使用以下app_name方法从 New Relic中检索newrelic-api:
app_name
newrelic-api
NewRelic.getAgent().config.getValue("app_name")
有了这个值,我刚刚将它传递给了commonTags里面MeterRegistryCustomizer<MeterRegistry>
commonTags
MeterRegistryCustomizer<MeterRegistry>