Skip to content

Commit

Permalink
Merge pull request #766 from open-telemetry/elixir-exception-atom
Browse files Browse the repository at this point in the history
Exception should be atom
  • Loading branch information
bryannaegele authored Sep 9, 2024
2 parents 18f0d7f + 1d9c4e5 commit 9042483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/opentelemetry_api/lib/open_telemetry/span.ex
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ defmodule OpenTelemetry.Span do
Exception.format_stacktrace(trace)}
]

add_event(span_ctx, "exception", exception_attributes ++ attributes)
add_event(span_ctx, :exception, exception_attributes ++ attributes)
end

def record_exception(_, _, _, _), do: false
Expand Down
2 changes: 1 addition & 1 deletion test/otel_tests.exs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ defmodule OtelTests do
:infinity,
0,
[
{:event, _, "exception", ^attributes}
{:event, _, :exception, ^attributes}
]
}
)}
Expand Down

0 comments on commit 9042483

Please sign in to comment.