newrelic-rake icon indicating copy to clipboard operation
newrelic-rake copied to clipboard

StatsEngine#metrics usage in tests

Open jasonrclark opened this issue 10 years ago • 1 comments

Hey there! We noticed that the tests for your gem are using the StatsEngine#metrics method, which with version 3.11.0 of newrelic_rpm is going away.

Luckily, we've provided a replacement which is what we use internally for validating metric recording called assert_metrics_recorded. You can see more documentation for it at https://docs.newrelic.com/docs/agents/ruby-agent/frameworks/third-party-instrumentation#testing-your-extension.

Let us know if you have any problems with updating to use the new testing methods, and thanks for your work extending the Ruby agent! :sparkles:

cc/ @tkrajcar

jasonrclark avatar Mar 18 '15 17:03 jasonrclark

cc @flyerhzm

josephpage avatar Oct 21 '15 13:10 josephpage