Skip to content

Commit f61a993

Browse files
committed
fix linting
1 parent d9eaee4 commit f61a993

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

packages/core/src/tracing/sentrySpan.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
import type {
1313
SentrySpanArguments,
1414
Span,
15-
SpanAttributes,
1615
SpanAttributeValue,
16+
SpanAttributes,
1717
SpanContextData,
1818
SpanEnvelope,
1919
SpanJSON,
@@ -29,14 +29,14 @@ import { dropUndefinedKeys } from '../utils-hoist/object';
2929
import { generateSpanId, generateTraceId } from '../utils-hoist/propagationContext';
3030
import { timestampInSeconds } from '../utils-hoist/time';
3131
import {
32+
TRACE_FLAG_NONE,
33+
TRACE_FLAG_SAMPLED,
3234
getRootSpan,
3335
getSpanDescendants,
3436
getStatusMessage,
3537
spanTimeInputToSeconds,
3638
spanToJSON,
3739
spanToTransactionTraceContext,
38-
TRACE_FLAG_NONE,
39-
TRACE_FLAG_SAMPLED,
4040
} from '../utils/spanUtils';
4141
import { getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';
4242
import { logSpanEnd } from './logSpans';

packages/nextjs/src/common/wrapGenerationFunctionWithSentry.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import type { RequestEventData, WebFetchHeaders } from '@sentry/core';
22
import {
3+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
4+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
5+
SPAN_STATUS_ERROR,
6+
SPAN_STATUS_OK,
7+
Scope,
38
captureException,
49
generateSpanId,
510
generateTraceId,
@@ -9,12 +14,7 @@ import {
914
getRootSpan,
1015
handleCallbackErrors,
1116
propagationContextFromHeaders,
12-
Scope,
13-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
14-
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
1517
setCapturedScopesOnSpan,
16-
SPAN_STATUS_ERROR,
17-
SPAN_STATUS_OK,
1818
startSpanManual,
1919
winterCGHeadersToDict,
2020
withIsolationScope,

packages/nextjs/src/common/wrapServerComponentWithSentry.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import type { RequestEventData } from '@sentry/core';
22
import {
3+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
4+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
5+
SPAN_STATUS_ERROR,
6+
SPAN_STATUS_OK,
7+
Scope,
38
captureException,
49
generateSpanId,
510
generateTraceId,
@@ -8,12 +13,7 @@ import {
813
getRootSpan,
914
handleCallbackErrors,
1015
propagationContextFromHeaders,
11-
Scope,
12-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
13-
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
1416
setCapturedScopesOnSpan,
15-
SPAN_STATUS_ERROR,
16-
SPAN_STATUS_OK,
1717
startSpanManual,
1818
vercelWaitUntil,
1919
winterCGHeadersToDict,

packages/opentelemetry/src/propagator.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { Baggage, Context, Span, SpanContext, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
2-
import { context, INVALID_TRACEID, propagation, trace, TraceFlags } from '@opentelemetry/api';
3-
import { isTracingSuppressed, W3CBaggagePropagator } from '@opentelemetry/core';
2+
import { INVALID_TRACEID, TraceFlags, context, propagation, trace } from '@opentelemetry/api';
3+
import { W3CBaggagePropagator, isTracingSuppressed } from '@opentelemetry/core';
44
import { ATTR_URL_FULL, SEMATTRS_HTTP_URL } from '@opentelemetry/semantic-conventions';
5-
import type { continueTrace, DynamicSamplingContext, Options, PropagationContext } from '@sentry/core';
5+
import type { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
66
import {
7+
LRUMap,
8+
SENTRY_BAGGAGE_KEY_PREFIX,
79
baggageHeaderToDynamicSamplingContext,
810
generateSentryTraceHeader,
911
generateSpanId,
@@ -14,10 +16,8 @@ import {
1416
getIsolationScope,
1517
getRootSpan,
1618
logger,
17-
LRUMap,
1819
parseBaggageHeader,
1920
propagationContextFromHeaders,
20-
SENTRY_BAGGAGE_KEY_PREFIX,
2121
spanToJSON,
2222
stringMatchesSomePattern,
2323
} from '@sentry/core';

packages/opentelemetry/src/spanExporter.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
44
import { ATTR_HTTP_RESPONSE_STATUS_CODE, SEMATTRS_HTTP_STATUS_CODE } from '@opentelemetry/semantic-conventions';
55
import type { SpanJSON, SpanOrigin, TraceContext, TransactionEvent, TransactionSource } from '@sentry/core';
66
import {
7+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
8+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
9+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
10+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
711
captureEvent,
812
dropUndefinedKeys,
913
getCapturedScopesOnSpan,
1014
getDynamicSamplingContextFromSpan,
1115
getMetricSummaryJsonForSpan,
1216
getStatusMessage,
1317
logger,
14-
SEMANTIC_ATTRIBUTE_SENTRY_OP,
15-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
16-
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
17-
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
1818
spanTimeInputToSeconds,
1919
timedEventsToMeasurements,
2020
} from '@sentry/core';

0 commit comments

Comments
 (0)