Skip to content

Commit

Permalink
ref(core): Use timestamp of processed event in name change
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Sep 13, 2022
1 parent ff4f97f commit 5f6b7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/baseclient.ts
Original file line number Diff line number Diff line change
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 5f6b7b3

Please sign in to comment.