Skip to content

Commit

Permalink
update README.md for URLSessionInstrumentation pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
batuhansk committed Nov 29, 2024
1 parent b2b4fc4 commit 55fc822
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Instrumentation/URLSession/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +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.

0 comments on commit 55fc822

Please sign in to comment.