Skip to content

Commit

Permalink
fix(otel): Use global map instead of old map var (#6122)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Nov 2, 2022
1 parent b55dd07 commit c9a01ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opentelemetry-node/src/spanprocessor.ts
Expand Up @@ -83,7 +83,7 @@ export class SentrySpanProcessor implements OtelSpanProcessor {
// In this case, we do not want to finish the span, in order to avoid sending it to Sentry
if (isSentryRequestSpan(otelSpan)) {
// Make sure to remove any references, so this can be GCed
this._map.delete(otelSpanId);
SENTRY_SPAN_PROCESSOR_MAP.delete(otelSpanId);
return;
}

Expand Down

0 comments on commit c9a01ff

Please sign in to comment.