File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,3 @@ export { stripUrlQueryAndFragment } from '@sentry/utils';
2727 * @deprecated Import this function from `@sentry/utils` instead
2828 */
2929export const extractTraceparentData = _extractTraceparentData ;
30-
31- /**
32- * Converts a timestamp to second, if it was in milliseconds, or keeps it as second.
33- */
34- export function ensureTimestampInSeconds ( timestamp : number ) : number {
35- const isMs = timestamp > 9999999999 ;
36- return isMs ? timestamp / 1000 : timestamp ;
37- }
Original file line number Diff line number Diff line change 11import type { Span , SpanTimeInput , TraceContext } from '@sentry/types' ;
22import { dropUndefinedKeys , generateSentryTraceHeader , timestampInSeconds } from '@sentry/utils' ;
3- import { ensureTimestampInSeconds } from '../tracing/utils' ;
43
54/**
65 * Convert a span to a trace context, which can be sent as the `trace` context in an event.
@@ -47,3 +46,11 @@ export function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number
4746
4847 return timestampInSeconds ( ) ;
4948}
49+
50+ /**
51+ * Converts a timestamp to second, if it was in milliseconds, or keeps it as second.
52+ */
53+ function ensureTimestampInSeconds ( timestamp : number ) : number {
54+ const isMs = timestamp > 9999999999 ;
55+ return isMs ? timestamp / 1000 : timestamp ;
56+ }
You can’t perform that action at this time.
0 commit comments