Class SentryWeakSpanStorage

java.lang.Object
io.sentry.opentelemetry.SentryWeakSpanStorage

@Internal public final class SentryWeakSpanStorage extends Object
Weakly references wrappers for OpenTelemetry spans meaning they'll be cleaned up when the OpenTelemetry span is garbage collected.
  • Method Details

    • getInstance

      @NotNull public static @NotNull SentryWeakSpanStorage getInstance()
    • getSentrySpan

      @Nullable public @Nullable IOtelSpanWrapper getSentrySpan(@NotNull @NotNull io.opentelemetry.api.trace.SpanContext spanContext)
    • storeSentrySpan

      public void storeSentrySpan(@NotNull @NotNull io.opentelemetry.api.trace.SpanContext otelSpan, @NotNull @NotNull IOtelSpanWrapper sentrySpan)