Class SentryContextWrapper

java.lang.Object
io.sentry.opentelemetry.SentryContextWrapper
All Implemented Interfaces:
io.opentelemetry.context.Context

@Internal public final class SentryContextWrapper extends Object implements io.opentelemetry.context.Context
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> V
    get(@NotNull io.opentelemetry.context.ContextKey<V> contextKey)
     
     
    <V> io.opentelemetry.context.Context
    with(@NotNull io.opentelemetry.context.ContextKey<V> contextKey, V v)
     
    static @NotNull SentryContextWrapper
    wrap(@NotNull io.opentelemetry.context.Context context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.opentelemetry.context.Context

    makeCurrent, with, wrap, wrap, wrap, wrap, wrap, wrapConsumer, wrapConsumer, wrapFunction, wrapFunction, wrapSupplier
  • Method Details

    • get

      public <V> V get(@NotNull @NotNull io.opentelemetry.context.ContextKey<V> contextKey)
      Specified by:
      get in interface io.opentelemetry.context.Context
    • with

      public <V> io.opentelemetry.context.Context with(@NotNull @NotNull io.opentelemetry.context.ContextKey<V> contextKey, V v)
      Specified by:
      with in interface io.opentelemetry.context.Context
    • wrap

      @NotNull public static @NotNull SentryContextWrapper wrap(@NotNull @NotNull io.opentelemetry.context.Context context)
    • toString

      public String toString()
      Overrides:
      toString in class Object