Skip to content

Commit

Permalink
Merge pull request #1858 from DataDog/ganeshnj/fix/trace-context-inje…
Browse files Browse the repository at this point in the history
…ction-param
  • Loading branch information
ganeshnj authored May 22, 2024
2 parents 40ce508 + 3145106 commit 876787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datadog/E2ETests/Tracing/TracerE2ETests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 876787a

Please sign in to comment.