Skip to content

Commit fbd4ef0

Browse files
authored
ref(core): Use timestamp of processed event in name change (#5735)
Instead of setting a timestamp to a number that is larger than the transaction's end timestamp, set the transaction name change timestamp to be the transaction's end timestamp.
1 parent ff4f97f commit fbd4ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/baseclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
resolvedSyncPromise,
3434
SentryError,
3535
SyncPromise,
36-
timestampInSeconds,
3736
truncate,
3837
uuid4,
3938
} from '@sentry/utils';
@@ -672,7 +671,8 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
672671
...transactionInfo.changes,
673672
{
674673
source,
675-
timestamp: timestampInSeconds(),
674+
// use the same timestamp as the processed event.
675+
timestamp: processedEvent.timestamp as number,
676676
propagations: transactionInfo.propagations,
677677
},
678678
],

0 commit comments

Comments
 (0)