artemeff / newrelic-hanami

Gem for connecting NewRelic and Hanami
MIT License
12 stars 13 forks source link

newrelic + hanami + omniauth-google-oauth2 #9

Open alexey-klimuk opened 6 years ago

alexey-klimuk commented 6 years ago

Hello, I see only one transaction name in transactions list on Newrelic: Middleware/Rack/OmniAuth::Strategies::GoogleOauth2#call

Any ideas how to decompose it?

screen shot 2018-02-08 at 17 42 59
alexey-klimuk commented 6 years ago

I've added some code for setting transaction name as a temporary solution:

controller.prepare do
  before { NewRelic::Agent.set_transaction_name(self.class.to_s) }
end

And now I see different transactions. And breakdown table looks like:

screen shot 2018-02-08 at 17 44 14
davydovanton commented 6 years ago

hey, sorry for delay, I'll check it ASAP