Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions packages/nextjs/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,29 +151,6 @@ export function init(options: NodeOptions): void {
),
);

// TODO(v8): Remove this because we have `suppressTracing`
addEventProcessor(
Object.assign(
(event => {
if (event.type === 'transaction') {
event.spans = event.spans?.filter(span => {
// Filter out spans for Sentry event sends
const httpTargetAttribute: unknown = span.data?.['http.target'];
if (typeof httpTargetAttribute === 'string') {
// TODO: Find a more robust matching logic - We likely want to use the OTEL SDK's `suppressTracing` in our transport, if we end up using it, we can delete this filtering logic here.
return !httpTargetAttribute.includes('sentry_client') && !httpTargetAttribute.includes('sentry_key');
}

return true;
});
}

return event;
}) satisfies EventProcessor,
{ id: 'NextFilterSentrySpans' },
),
);

if (process.env.NODE_ENV === 'development') {
addEventProcessor(devErrorSymbolicationEventProcessor);
}
Expand Down