Skip to content

Commit

Permalink
update Instrumentation/URLSession/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
batuhansk committed Dec 20, 2024
1 parent 9e7e791 commit 0e5f7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Instrumentation/URLSession/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ This behaviour can be modified or augmented by using the optional callbacks defi

`receivedError: ((Error, DataOrFile?, HTTPStatus, Span) -> Void)?` - Called after an error is received, it allows to add extra information to the Span

`baggageProvider: ((URLRequest, Span) -> (Baggage)?)?`: Provides baggage instance for instrumented requests that is merged with active baggage. The callback receives URLRequest and Span parameters to create dynamic baggage based on request context. The resulting baggage is injected into request headers using the configured propagator.
`baggageProvider: ((inout URLRequest, Span) -> (Baggage)?)?`: Provides baggage instance for instrumented requests that is merged with active baggage. The callback receives URLRequest and Span parameters to create dynamic baggage based on request context. The resulting baggage is injected into request headers using the configured propagator.

0 comments on commit 0e5f7ff

Please sign in to comment.