We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ef715 commit ea5e8e2Copy full SHA for ea5e8e2
packages/react-router/src/server/sdk.ts
@@ -50,12 +50,13 @@ export function init(options: NodeOptions): NodeClient | undefined {
50
overwrite
51
) {
52
event.transaction = overwrite;
53
- delete event.contexts?.trace?.data?.[SEMANTIC_ATTRIBUTE_SENTRY_OVERWRITE];
54
event.contexts.trace.data[ATTR_HTTP_ROUTE] = 'url';
55
- return event;
56
- } else {
57
58
}
+
+ // always yeet this attribute into the void, as this should not reach the server
+ delete event.contexts?.trace?.data?.[SEMANTIC_ATTRIBUTE_SENTRY_OVERWRITE];
59
+ return event;
60
}) satisfies EventProcessor,
61
{ id: 'ReactRouterTransactionEnhancer' },
62
),
0 commit comments