1 | import type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types';
|
2 | type PolymorphicRequestHeaders = Record<string, string | undefined> | Array<[string, string]> | {
|
3 | [key: string]: any;
|
4 | append: (key: string, value: string) => void;
|
5 | get: (key: string) => string | null | undefined;
|
6 | };
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function instrumentFetchRequest(handlerData: HandlerDataFetch, shouldCreateSpan: (url: string) => boolean, shouldAttachHeaders: (url: string) => boolean, spans: Record<string, Span>, spanOrigin?: SpanOrigin): Span | undefined;
|
13 |
|
14 |
|
15 |
|
16 | export declare function addTracingHeadersToFetchRequest(request: string | unknown,
|
17 | client: Client, scope: Scope, options: {
|
18 | headers?: {
|
19 | [key: string]: string[] | string | undefined;
|
20 | } | PolymorphicRequestHeaders;
|
21 | }, span?: Span): PolymorphicRequestHeaders | undefined;
|
22 | export {};
|
23 |
|
\ | No newline at end of file |