Skip to content

Commit 9c357f5

Browse files
Luca ForstnerLms24
andauthored
Update packages/browser/src/tracing/browserTracingIntegration.ts
Co-authored-by: Lukas Stracke <[email protected]>
1 parent 303369c commit 9c357f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ export interface BrowserTracingOptions {
197197
shouldCreateSpanForRequest?(this: void, url: string): boolean;
198198

199199
/**
200-
* Is called when spans are started for outgoing requests.
200+
* This callback is invoked directly after a span is started for an outgoing fetch or XHR request.
201+
* You can use it to annotate the span with additional data or attributes, for example by setting
202+
* attributes based on the passed request headers.
201203
*/
202204
onRequestSpanStart(span: Span, requestInformation: { headers?: WebFetchHeaders }): void;
203205
}

0 commit comments

Comments
 (0)