diff --git a/spec/datadog/opentracer/rack_propagator_spec.rb b/spec/datadog/opentracer/rack_propagator_spec.rb index 32b5f88a10c..41df9ac8a6e 100644 --- a/spec/datadog/opentracer/rack_propagator_spec.rb +++ b/spec/datadog/opentracer/rack_propagator_spec.rb @@ -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)