Skip to content

Commit f24334d

Browse files
committed
tag events which have skipped normalization
1 parent db373c9 commit f24334d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
428428
normalized.contexts.trace = event.contexts.trace;
429429
}
430430

431+
event.sdkProcessingMetadata = { ...event.sdkProcessingMetadata, baseClientNormalized: true };
431432

432433
return normalized;
433434
}

packages/core/src/request.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ export function eventToSentryRequest(event: Event, api: APIDetails): SentryReque
7272
event.tags = event.tags || {};
7373
event.extra = event.extra || {};
7474

75+
// In theory, all events should be marked as having gone through normalization and so
76+
// we should never set this tag
77+
if (!(event.sdkProcessingMetadata && event.sdkProcessingMetadata.baseClientNormalized)) {
78+
event.tags.skippedNormalization = true;
79+
}
80+
7581
// prevent this data from being sent to sentry
7682
// TODO: This is NOT part of the hack - DO NOT DELETE
7783
delete event.sdkProcessingMetadata;

0 commit comments

Comments
 (0)