Skip to content

Commit

Permalink
Correct headersWritter -> headersWriter typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Way authored Jul 3, 2021
1 parent b8f34bb commit d94b09a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/trace_collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ Datadog.initialize(

let span = Global.sharedTracer.startSpan(operationName: "network request")

let headersWritter = HTTPHeadersWriter()
Global.sharedTracer.inject(spanContext: span.context, writer: headersWritter)
let headersWriter = HTTPHeadersWriter()
Global.sharedTracer.inject(spanContext: span.context, writer: headersWriter)

for (headerField, value) in headersWritter.tracePropagationHTTPHeaders {
for (headerField, value) in headersWriter.tracePropagationHTTPHeaders {
request.addValue(value, forHTTPHeaderField: headerField)
}
```
Expand Down

0 comments on commit d94b09a

Please sign in to comment.