Skip to content

Commit

Permalink
rename reason to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rlchu committed Oct 9, 2024
1 parent d8dfffc commit 3834a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/new_relic/error/metadata_reporter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ defmodule NewRelic.Error.MetadataReporter do

def report_error(:transaction, {_cause, metadata}) do
kind = :error
{reason, stacktrace} = metadata.reason
{exception, stacktrace} = metadata.reason
process_name = parse_process_name(metadata[:registered_name], stacktrace)

NewRelic.add_attributes(process: process_name)

NewRelic.Transaction.Reporter.error(%{
kind: kind,
reason: reason,
reason: exception,
stack: stacktrace
})
end
Expand Down

0 comments on commit 3834a36

Please sign in to comment.