Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Aug 8, 2023
1 parent 6ec648c commit 160a64b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/new_relic/agent/instrumentation/roda/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ def rack_request_params
@_request.params
rescue => e
NewRelic::Agent.logger.debug('Failed to get params from Rack request.', e)
nil
NewRelic::EMPTY_HASH
end
end

def _roda_handle_main_route_with_tracing(*args)
request_params = rack_request_params
filtered_params = ::NewRelic::Agent::ParameterFiltering::apply_filters(request.env, request_params ||
NewRelic::EMPTY_HASH)
filtered_params = ::NewRelic::Agent::ParameterFiltering::apply_filters(request.env, request_params)
name = TransactionNamer.transaction_name(request)

perform_action_with_newrelic_trace(:category => :roda,
Expand Down

0 comments on commit 160a64b

Please sign in to comment.