From 61446ef238761bea70a1045dd5f289259e119e8f Mon Sep 17 00:00:00 2001 From: Peter Solnica Date: Wed, 25 Sep 2024 10:39:20 +0000 Subject: [PATCH] Fix extracting span record when sentry is an external dep --- lib/sentry/opentelemetry/span_record.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sentry/opentelemetry/span_record.ex b/lib/sentry/opentelemetry/span_record.ex index 63b05b68..dc5c4cd4 100644 --- a/lib/sentry/opentelemetry/span_record.ex +++ b/lib/sentry/opentelemetry/span_record.ex @@ -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]