Package io.sentry.opentelemetry
Class SentryWeakSpanStorage
java.lang.Object
io.sentry.opentelemetry.SentryWeakSpanStorage
Weakly references wrappers for OpenTelemetry spans meaning they'll be cleaned up when the
OpenTelemetry span is garbage collected.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SentryWeakSpanStorage
@Nullable IOtelSpanWrapper
getSentrySpan
(@NotNull io.opentelemetry.api.trace.SpanContext spanContext) void
storeSentrySpan
(@NotNull io.opentelemetry.api.trace.SpanContext otelSpan, @NotNull IOtelSpanWrapper sentrySpan)
-
Method Details
-
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)
-