|
1 | | -import { |
2 | | - SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, |
3 | | - SPAN_STATUS_ERROR, |
4 | | - getClient, |
5 | | - getCurrentScope, |
6 | | - getDynamicSamplingContextFromClient, |
7 | | - getDynamicSamplingContextFromSpan, |
8 | | - getIsolationScope, |
9 | | - hasTracingEnabled, |
10 | | - setHttpStatus, |
11 | | - spanToTraceHeader, |
12 | | - startInactiveSpan, |
13 | | -} from '@sentry/core'; |
14 | 1 | import type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types'; |
15 | 2 | import { |
16 | 3 | BAGGAGE_HEADER_NAME, |
17 | 4 | dynamicSamplingContextToSentryBaggageHeader, |
18 | 5 | generateSentryTraceHeader, |
19 | 6 | isInstanceOf, |
20 | 7 | } from '@sentry/utils'; |
| 8 | +import { getClient, getCurrentScope, getIsolationScope } from './currentScopes'; |
| 9 | +import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes'; |
| 10 | +import { |
| 11 | + SPAN_STATUS_ERROR, |
| 12 | + getDynamicSamplingContextFromClient, |
| 13 | + getDynamicSamplingContextFromSpan, |
| 14 | + setHttpStatus, |
| 15 | + startInactiveSpan, |
| 16 | +} from './tracing'; |
| 17 | +import { hasTracingEnabled } from './utils/hasTracingEnabled'; |
| 18 | +import { spanToTraceHeader } from './utils/spanUtils'; |
21 | 19 |
|
22 | 20 | type PolymorphicRequestHeaders = |
23 | 21 | | Record<string, string | undefined> |
@@ -110,7 +108,6 @@ export function instrumentFetchRequest( |
110 | 108 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
111 | 109 | const options: { [key: string]: any } = handlerData.args[1]; |
112 | 110 |
|
113 | | - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access |
114 | 111 | options.headers = addTracingHeadersToFetchRequest(request, client, scope, options, span); |
115 | 112 | } |
116 | 113 |
|
|
0 commit comments