From 3145106853de5c675c327645820ef0f26a563a09 Mon Sep 17 00:00:00 2001 From: Ganesh Jangir Date: Wed, 22 May 2024 17:55:31 +0200 Subject: [PATCH] fix: set traceContextInjection param for E2E test case --- Datadog/E2ETests/Tracing/TracerE2ETests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Datadog/E2ETests/Tracing/TracerE2ETests.swift b/Datadog/E2ETests/Tracing/TracerE2ETests.swift index c90a2176f4..f56bc03e76 100644 --- a/Datadog/E2ETests/Tracing/TracerE2ETests.swift +++ b/Datadog/E2ETests/Tracing/TracerE2ETests.swift @@ -51,7 +51,7 @@ class TracerE2ETests: E2ETests { /// ``` func test_trace_tracer_inject_span_context() { let anySpan = tracer.startSpan(operationName: .mockRandom()) // this span is never sent - let anyWriter = HTTPHeadersWriter(samplingStrategy: .custom(sampleRate: 20)) + let anyWriter = HTTPHeadersWriter(samplingStrategy: .custom(sampleRate: 20), traceContextInjection: .all) measure(resourceName: DD.PerfSpanName.fromCurrentMethodName()) { tracer.inject(spanContext: anySpan.context, writer: anyWriter)