File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ if Code.ensure_loaded?(:otel_sampler) do
22 defmodule Sentry.OpenTelemetry.Sampler do
33 @ moduledoc false
44
5+ alias OpenTelemetry . { Span , Tracer }
6+
57 @ behaviour :otel_sampler
68
79 @ sentry_sample_rate_key "sentry-sample_rate"
@@ -45,15 +47,15 @@ if Code.ensure_loaded?(:otel_sampler) do
4547 end
4648
4749 defp get_parent_sampling_decision ( ctx , trace_id ) do
48- case :otel_tracer . current_span_ctx ( ctx ) do
50+ case Tracer . current_span_ctx ( ctx ) do
4951 :undefined ->
5052 :no_parent
5153
5254 span_ctx ->
53- parent_trace_id = :otel_span . trace_id ( span_ctx )
55+ parent_trace_id = Span . trace_id ( span_ctx )
5456
5557 if parent_trace_id == trace_id do
56- tracestate = :otel_span . tracestate ( span_ctx )
58+ tracestate = Span . tracestate ( span_ctx )
5759 parent_sampled = get_tracestate_value ( tracestate , @ sentry_sampled_key )
5860
5961 case parent_sampled do
You can’t perform that action at this time.
0 commit comments