Skip to content

Commit 934943c

Browse files
authored
ref(nextjs): Remove unnecessary logic to filter symbolification/sentry spans (#11714)
1 parent 9a7e276 commit 934943c

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

packages/nextjs/src/server/index.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -151,29 +151,6 @@ export function init(options: NodeOptions): void {
151151
),
152152
);
153153

154-
// TODO(v8): Remove this because we have `suppressTracing`
155-
addEventProcessor(
156-
Object.assign(
157-
(event => {
158-
if (event.type === 'transaction') {
159-
event.spans = event.spans?.filter(span => {
160-
// Filter out spans for Sentry event sends
161-
const httpTargetAttribute: unknown = span.data?.['http.target'];
162-
if (typeof httpTargetAttribute === 'string') {
163-
// 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.
164-
return !httpTargetAttribute.includes('sentry_client') && !httpTargetAttribute.includes('sentry_key');
165-
}
166-
167-
return true;
168-
});
169-
}
170-
171-
return event;
172-
}) satisfies EventProcessor,
173-
{ id: 'NextFilterSentrySpans' },
174-
),
175-
);
176-
177154
if (process.env.NODE_ENV === 'development') {
178155
addEventProcessor(devErrorSymbolicationEventProcessor);
179156
}

0 commit comments

Comments
 (0)