Skip to content

Commit

Permalink
Fix opentracing test to a stable set of styles
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Nov 9, 2023
1 parent 3b85ade commit 6a35f40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/datadog/opentracer/rack_propagator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
let(:carrier) { instance_double(Datadog::OpenTracer::Carrier) }

before do
Datadog.configure do |c|
c.tracing.distributed_tracing.propagation_style = ['Datadog']
end

# Expect carrier to be set with Datadog trace properties
expect(carrier).to receive(:[]=)
.with('x-datadog-trace-id', trace_id.to_s)
Expand Down

0 comments on commit 6a35f40

Please sign in to comment.