We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303369c commit 9c357f5Copy full SHA for 9c357f5
packages/browser/src/tracing/browserTracingIntegration.ts
@@ -197,7 +197,9 @@ export interface BrowserTracingOptions {
197
shouldCreateSpanForRequest?(this: void, url: string): boolean;
198
199
/**
200
- * Is called when spans are started for outgoing requests.
+ * 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.
203
*/
204
onRequestSpanStart(span: Span, requestInformation: { headers?: WebFetchHeaders }): void;
205
}
0 commit comments