Skip to content

Commit 09317ae

Browse files
committed
remove unused code
1 parent 7a6698c commit 09317ae

File tree

3 files changed

+2
-102
lines changed

3 files changed

+2
-102
lines changed

packages/core/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export {
9292
} from './utils/spanUtils';
9393
export { captureSpan } from './spans/captureSpan';
9494
export { safeSetSpanJSONAttributes } from './spans/spanFirstUtils';
95-
export { attributesFromObject } from './utils/attributes';
9695
export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
9796
export { parseSampleRate } from './utils/parseSampleRate';
9897
export { applySdkMetadata } from './utils/sdkMetadata';

packages/core/src/utils/attributes.ts

Lines changed: 0 additions & 98 deletions
This file was deleted.

packages/core/src/utils/spanUtils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { getAsyncContextStrategy } from '../asyncContext';
2-
import { attributeValueToTypedAttributeValue, TypedAttributes } from '../attributes';
2+
import type { TypedAttributes } from '../attributes';
3+
import { attributeValueToTypedAttributeValue } from '../attributes';
34
import { getMainCarrier } from '../carrier';
45
import { getCurrentScope } from '../currentScopes';
56
import {
@@ -11,7 +12,6 @@ import {
1112
import type { SentrySpan } from '../tracing/sentrySpan';
1213
import { SPAN_STATUS_OK, SPAN_STATUS_UNSET } from '../tracing/spanstatus';
1314
import { getCapturedScopesOnSpan } from '../tracing/utils';
14-
import type { SerializedAttributes } from '../types-hoist/attributes';
1515
import type { TraceContext } from '../types-hoist/context';
1616
import type { SpanLink, SpanLinkJSON } from '../types-hoist/link';
1717
import type { Span, SpanAttributes, SpanJSON, SpanOrigin, SpanTimeInput, SpanV2JSON } from '../types-hoist/span';
@@ -20,7 +20,6 @@ import { addNonEnumerableProperty } from '../utils/object';
2020
import { generateSpanId } from '../utils/propagationContext';
2121
import { timestampInSeconds } from '../utils/time';
2222
import { generateSentryTraceHeader, generateTraceparentHeader } from '../utils/tracing';
23-
import { attributeValueToSerializedAttribute } from './attributes';
2423
import { consoleSandbox } from './debug-logger';
2524
import { _getSpanForScope } from './spanOnScope';
2625

0 commit comments

Comments
 (0)