Skip to content

Commit

Permalink
Update for refactored otel_sampler:new function
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Aug 19, 2021
1 parent 817f311 commit 6c680e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/opentelemetry/test/opentelemetry_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ non_recording_ets_table(_Config) ->
SpanCtx1 = otel_tracer:start_span(Tracer, <<"span-1">>, #{}),
?assertMatch(true, SpanCtx1#span_ctx.is_recording),

AlwaysOff = otel_sampler:setup(always_off),
AlwaysOff = otel_sampler:new(always_off),
SpanCtx2 = otel_tracer:start_span(Tracer, <<"span-2">>, #{sampler => AlwaysOff}),
?assertMatch(false, SpanCtx2#span_ctx.is_recording),

Expand Down

0 comments on commit 6c680e4

Please sign in to comment.