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 de97c17 commit f960c44Copy full SHA for f960c44
src/instrumentation.ts
@@ -18,6 +18,19 @@ export function register() {
18
tracesSampleRate: 1,
19
debug: false,
20
environment: process.env.NODE_ENV === 'development' ? 'development' : undefined,
21
+ // temporary change for investigating edge middleware tx names
22
+ beforeSendTransaction(event) {
23
+ if (
24
+ event.transaction?.includes('middleware GET') &&
25
+ event.contexts?.trace?.data
26
+ ) {
27
+ event.contexts.trace.data = {
28
+ ...event.contexts.trace.data,
29
+ 'sentry.source': 'custom',
30
+ };
31
+ }
32
+ return event;
33
+ },
34
});
35
}
36
0 commit comments