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';
27
27
* @deprecated Import this function from `@sentry/utils` instead
28
28
*/
29
29
export 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 1
1
import type { Span , SpanTimeInput , TraceContext } from '@sentry/types' ;
2
2
import { dropUndefinedKeys , generateSentryTraceHeader , timestampInSeconds } from '@sentry/utils' ;
3
- import { ensureTimestampInSeconds } from '../tracing/utils' ;
4
3
5
4
/**
6
5
* 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
47
46
48
47
return timestampInSeconds ( ) ;
49
48
}
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