Skip to content

Commit dfb01a3

Browse files
erszczmarcdel
authored andcommitted
Set error on a span with an unhandled :erlang.exit()
1 parent d4069c2 commit dfb01a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/open_telemetry_decorator.ex

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ defmodule OpenTelemetryDecorator do
8282
e ->
8383
O11y.record_exception(e)
8484
reraise e, __STACKTRACE__
85+
catch
86+
class, reason ->
87+
O11y.set_error("#{class}:#{reason}")
88+
:erlang.raise(class, reason, __STACKTRACE__)
8589
after
8690
O11y.end_span(parent_span)
8791
end

0 commit comments

Comments
 (0)