Skip to content

Commit

Permalink
Fix extracting span record when sentry is an external dep
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Sep 25, 2024
1 parent 870ad1f commit 61446ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sentry/opentelemetry/span_record.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Sentry.Opentelemetry.SpanRecord do
require Record

@fields Record.extract(:span, from: "deps/opentelemetry/include/otel_span.hrl")
@fields Record.extract(:span, from_lib: "opentelemetry/include/otel_span.hrl")
Record.defrecordp(:span, @fields)

defstruct @fields ++ [:origin]
Expand Down

0 comments on commit 61446ef

Please sign in to comment.