newrelic / newrelic-ruby-agent

New Relic RPM Ruby Agent
https://docs.newrelic.com/docs/apm/agents/ruby-agent/getting-started/introduction-new-relic-ruby/
Apache License 2.0
1.2k stars 598 forks source link

The instrumentation generator ought to include supportability metrics reporting #2830

Open fallwith opened 2 months ago

fallwith commented 2 months ago

The Ruby content generated for new instrumentation by the instrumentation generator ought to leverage NewRelic::Agent.record_instrumentation_invocation to report supportability metrics.

Here's Sidekiq's for example:

INSTRUMENTATION_NAME = 'SidekiqClient'

NewRelic::Agent.record_instrumentation_invocation(INSTRUMENTATION_NAME)
workato-integration[bot] commented 2 months ago

https://new-relic.atlassian.net/browse/NR-306578