Skip to content

Commit

Permalink
ref(core): Use timestamp of processed event in name change (#5735)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AbhiPrasad committed Sep 14, 2022
1 parent ff4f97f commit fbd4ef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/baseclient.ts
Expand Up @@ -33,7 +33,6 @@ import {
resolvedSyncPromise,
SentryError,
SyncPromise,
timestampInSeconds,
truncate,
uuid4,
} from '@sentry/utils';
Expand Down Expand Up @@ -672,7 +671,8 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
...transactionInfo.changes,
{
source,
timestamp: timestampInSeconds(),
// use the same timestamp as the processed event.
timestamp: processedEvent.timestamp as number,
propagations: transactionInfo.propagations,
},
],
Expand Down

0 comments on commit fbd4ef0

Please sign in to comment.