Hi,
I’d like to add a unique transaction id generated within Rails to my application traces. It corresponds to other data we’re logging outside of New Relic.
I tried doing this in my ApplicationController
with add_custom_attributes
and add_transaction_tracer
on a method that’s called by all requests (all_requests_method
).
Unfortunately, this makes my transactions have names like RealController::all_requests_method
instead of RealController::real_method
.
What is the best way to add this unique transaction id? Would overriding the bad naming with set_transaction_name
have any consequences for how the data is collected?
The only change I could see is that all transactions will now display Rack middleware data timing information which is annoying but could work.
Edit: My mistake, I put this in the wrong category