Skip to content

Commit 3ce59d8

Browse files
committed
fix circular dep check
1 parent 11e4e4d commit 3ce59d8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/core/src/tracing/span.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ import type {
1414
import { dropUndefinedKeys, logger, timestampInSeconds, uuid4 } from '@sentry/utils';
1515

1616
import { DEBUG_BUILD } from '../debug-build';
17-
import { spanToTraceContext, spanToTraceHeader } from '../utils/spanUtils';
17+
import { TraceFlagNone, TraceFlagSampled, spanToTraceContext, spanToTraceHeader } from '../utils/spanUtils';
1818
import { ensureTimestampInSeconds } from './utils';
1919

20-
export const TraceFlagNone = 0x0;
21-
// eslint-disable-next-line no-bitwise
22-
export const TraceFlagSampled = 0x1 << 0;
23-
2420
/**
2521
* Keeps track of finished spans for a given transaction
2622
* @internal

packages/core/src/utils/spanUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { Span, TraceContext } from '@sentry/types';
22
import { dropUndefinedKeys, generateSentryTraceHeader } from '@sentry/utils';
3-
import { TraceFlagSampled } from '../tracing/span';
3+
4+
export const TraceFlagNone = 0x0;
5+
// eslint-disable-next-line no-bitwise
6+
export const TraceFlagSampled = 0x1 << 0;
47

58
/**
69
* Convert a span to a trace context, which can be sent as the `trace` context in an event.

0 commit comments

Comments
 (0)