Class Contexts

All Implemented Interfaces:
JsonSerializable, Serializable, ConcurrentMap<String,Object>, Map<String,Object>

public final class Contexts extends ConcurrentHashMap<String,Object> implements JsonSerializable
See Also:
  • Field Details

  • Constructor Details

    • Contexts

      public Contexts()
    • Contexts

      public Contexts(@NotNull @NotNull Contexts contexts)
  • Method Details

    • getTrace

      @Nullable public @Nullable SpanContext getTrace()
    • setTrace

      public void setTrace(@Nullable @Nullable SpanContext traceContext)
    • getApp

      @Nullable public @Nullable App getApp()
    • setApp

      public void setApp(@NotNull @NotNull App app)
    • getBrowser

      @Nullable public @Nullable Browser getBrowser()
    • setBrowser

      public void setBrowser(@NotNull @NotNull Browser browser)
    • getDevice

      @Nullable public @Nullable Device getDevice()
    • setDevice

      public void setDevice(@NotNull @NotNull Device device)
    • getOperatingSystem

      @Nullable public @Nullable OperatingSystem getOperatingSystem()
    • setOperatingSystem

      public void setOperatingSystem(@NotNull @NotNull OperatingSystem operatingSystem)
    • getRuntime

      @Nullable public @Nullable SentryRuntime getRuntime()
    • setRuntime

      public void setRuntime(@NotNull @NotNull SentryRuntime runtime)
    • getGpu

      @Nullable public @Nullable Gpu getGpu()
    • setGpu

      public void setGpu(@NotNull @NotNull Gpu gpu)
    • getResponse

      @Nullable public @Nullable Response getResponse()
    • withResponse

      public void withResponse(HintUtils.SentryConsumer<Response> callback)
    • setResponse

      public void setResponse(@NotNull @NotNull Response response)
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException