Skip to content

Commit b4aa191

Browse files
committed
fix lint errors
1 parent ee2ee90 commit b4aa191

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

packages/browser/src/integrations/spanstreaming.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export const spanStreamingIntegration = defineIntegration(((userOptions?: Partia
5555
}
5656

5757
client.on('enqueueSpan', spanJSON => {
58-
const spanTreeMapKey = getSpanTreeMapKey(spanJSON as SpanV2JSONWithSegmentRef);
58+
const spanTreeMapKey = getSpanTreeMapKey(spanJSON);
5959
const spanBuffer = spanTreeMap.get(spanTreeMapKey);
6060
if (spanBuffer) {
61-
spanBuffer.add(spanJSON as SpanV2JSONWithSegmentRef);
61+
spanBuffer.add(spanJSON);
6262
} else {
63-
spanTreeMap.set(spanTreeMapKey, new Set([spanJSON as SpanV2JSONWithSegmentRef]));
63+
spanTreeMap.set(spanTreeMapKey, new Set([spanJSON]));
6464
}
6565
});
6666

packages/core/src/spans/captureSpan.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
SEMANTIC_ATTRIBUTE_USER_USERNAME,
1616
} from '../semanticAttributes';
1717
import { getCapturedScopesOnSpan } from '../tracing/utils';
18-
import type { SerializedAttributes } from '../types-hoist/attributes';
1918
import type { Span, SpanV2JSON } from '../types-hoist/span';
2019
import { mergeScopeData } from '../utils/applyScopeDataToEvent';
2120
import { isV2BeforeSendSpanCallback } from '../utils/beforeSendSpan';

packages/opentelemetry/src/spanProcessor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { ReadableSpan, Span, SpanProcessor as SpanProcessorInterface } from
44
import type { Client } from '@sentry/core';
55
import {
66
addChildSpanToSpan,
7-
captureSpan,
87
getClient,
98
getDefaultCurrentScope,
109
getDefaultIsolationScope,

packages/opentelemetry/src/streamingSpanExporter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
2-
import type { Client, Span, SpanV2JSON } from '@sentry/core';
2+
import type { Client, Span, SpanV2JSON, SpanV2JSONWithSegmentRef } from '@sentry/core';
33
import {
4-
type SpanV2JSONWithSegmentRef,
54
captureSpan,
65
createSpanV2Envelope,
76
debug,
@@ -11,7 +10,7 @@ import {
1110
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
1211
} from '@sentry/core';
1312
import { DEBUG_BUILD } from './debug-build';
14-
import { type ISentrySpanExporter, getSpanData } from './spanExporter';
13+
import { getSpanData, type ISentrySpanExporter } from './spanExporter';
1514

1615
type StreamingSpanExporterOptions = {
1716
flushInterval?: number;

0 commit comments

Comments
 (0)