Skip to content

Commit

Permalink
Merge pull request #531 from marcusway/patch-1
Browse files Browse the repository at this point in the history
Correct `headersWritter` -> `headersWriter` typo
  • Loading branch information
buranmert authored Jul 6, 2021
2 parents 8673c7a + d94b09a commit aea2973
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 aea2973

Please sign in to comment.