Package io.sentry

Class CustomSamplingContext


  • public final class CustomSamplingContext
    extends java.lang.Object
    Arbitrary data used in SamplingContext to determine if transaction is going to be sampled.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.Object get​(@NotNull java.lang.String key)  
      @NotNull java.util.Map<java.lang.String,​java.lang.Object> getData()  
      void set​(@NotNull java.lang.String key, @Nullable java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomSamplingContext

        public CustomSamplingContext()
    • Method Detail

      • set

        public void set​(@NotNull
                        @NotNull java.lang.String key,
                        @Nullable
                        @Nullable java.lang.Object value)
      • get

        @Nullable
        public @Nullable java.lang.Object get​(@NotNull
                                              @NotNull java.lang.String key)
      • getData

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.Object> getData()