Skip to content

Commit c9a01ff

Browse files
authored
fix(otel): Use global map instead of old map var (#6122)
1 parent b55dd07 commit c9a01ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opentelemetry-node/src/spanprocessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class SentrySpanProcessor implements OtelSpanProcessor {
8383
// In this case, we do not want to finish the span, in order to avoid sending it to Sentry
8484
if (isSentryRequestSpan(otelSpan)) {
8585
// Make sure to remove any references, so this can be GCed
86-
this._map.delete(otelSpanId);
86+
SENTRY_SPAN_PROCESSOR_MAP.delete(otelSpanId);
8787
return;
8888
}
8989

0 commit comments

Comments
 (0)