Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Dec 2, 2024
1 parent d9eaee4 commit f61a993
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/tracing/sentrySpan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
import type {
SentrySpanArguments,
Span,
SpanAttributes,
SpanAttributeValue,
SpanAttributes,
SpanContextData,
SpanEnvelope,
SpanJSON,
Expand All @@ -29,14 +29,14 @@ import { dropUndefinedKeys } from '../utils-hoist/object';
import { generateSpanId, generateTraceId } from '../utils-hoist/propagationContext';
import { timestampInSeconds } from '../utils-hoist/time';
import {
TRACE_FLAG_NONE,
TRACE_FLAG_SAMPLED,
getRootSpan,
getSpanDescendants,
getStatusMessage,
spanTimeInputToSeconds,
spanToJSON,
spanToTransactionTraceContext,
TRACE_FLAG_NONE,
TRACE_FLAG_SAMPLED,
} from '../utils/spanUtils';
import { getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';
import { logSpanEnd } from './logSpans';
Expand Down
10 changes: 5 additions & 5 deletions packages/nextjs/src/common/wrapGenerationFunctionWithSentry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import type { RequestEventData, WebFetchHeaders } from '@sentry/core';
import {
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
SPAN_STATUS_ERROR,
SPAN_STATUS_OK,
Scope,
captureException,
generateSpanId,
generateTraceId,
Expand All @@ -9,12 +14,7 @@ import {
getRootSpan,
handleCallbackErrors,
propagationContextFromHeaders,
Scope,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCapturedScopesOnSpan,
SPAN_STATUS_ERROR,
SPAN_STATUS_OK,
startSpanManual,
winterCGHeadersToDict,
withIsolationScope,
Expand Down
10 changes: 5 additions & 5 deletions packages/nextjs/src/common/wrapServerComponentWithSentry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import type { RequestEventData } from '@sentry/core';
import {
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
SPAN_STATUS_ERROR,
SPAN_STATUS_OK,
Scope,
captureException,
generateSpanId,
generateTraceId,
Expand All @@ -8,12 +13,7 @@ import {
getRootSpan,
handleCallbackErrors,
propagationContextFromHeaders,
Scope,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCapturedScopesOnSpan,
SPAN_STATUS_ERROR,
SPAN_STATUS_OK,
startSpanManual,
vercelWaitUntil,
winterCGHeadersToDict,
Expand Down
10 changes: 5 additions & 5 deletions packages/opentelemetry/src/propagator.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import type { Baggage, Context, Span, SpanContext, TextMapGetter, TextMapSetter } from '@opentelemetry/api';
import { context, INVALID_TRACEID, propagation, trace, TraceFlags } from '@opentelemetry/api';
import { isTracingSuppressed, W3CBaggagePropagator } from '@opentelemetry/core';
import { INVALID_TRACEID, TraceFlags, context, propagation, trace } from '@opentelemetry/api';
import { W3CBaggagePropagator, isTracingSuppressed } from '@opentelemetry/core';
import { ATTR_URL_FULL, SEMATTRS_HTTP_URL } from '@opentelemetry/semantic-conventions';
import type { continueTrace, DynamicSamplingContext, Options, PropagationContext } from '@sentry/core';
import type { DynamicSamplingContext, Options, PropagationContext, continueTrace } from '@sentry/core';
import {
LRUMap,
SENTRY_BAGGAGE_KEY_PREFIX,
baggageHeaderToDynamicSamplingContext,
generateSentryTraceHeader,
generateSpanId,
Expand All @@ -14,10 +16,8 @@ import {
getIsolationScope,
getRootSpan,
logger,
LRUMap,
parseBaggageHeader,
propagationContextFromHeaders,
SENTRY_BAGGAGE_KEY_PREFIX,
spanToJSON,
stringMatchesSomePattern,
} from '@sentry/core';
Expand Down
8 changes: 4 additions & 4 deletions packages/opentelemetry/src/spanExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import { ATTR_HTTP_RESPONSE_STATUS_CODE, SEMATTRS_HTTP_STATUS_CODE } from '@opentelemetry/semantic-conventions';
import type { SpanJSON, SpanOrigin, TraceContext, TransactionEvent, TransactionSource } from '@sentry/core';
import {
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
captureEvent,
dropUndefinedKeys,
getCapturedScopesOnSpan,
getDynamicSamplingContextFromSpan,
getMetricSummaryJsonForSpan,
getStatusMessage,
logger,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
spanTimeInputToSeconds,
timedEventsToMeasurements,
} from '@sentry/core';
Expand Down

0 comments on commit f61a993

Please sign in to comment.