newrelic-ruby-agent icon indicating copy to clipboard operation
newrelic-ruby-agent copied to clipboard

The instrumentation generator ought to include supportability metrics reporting

Open fallwith opened this issue 1 year ago • 1 comments

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)

fallwith avatar Aug 26 '24 17:08 fallwith