Class TracerSharedState

java.lang.Object
io.opentelemetry.sdk.trace.TracerSharedState

final class TracerSharedState extends Object
  • Field Details

    • lock

      private final Object lock
    • clock

      private final Clock clock
    • idGenerator

      private final IdGenerator idGenerator
    • idGeneratorSafeToSkipIdValidation

      private final boolean idGeneratorSafeToSkipIdValidation
    • resource

      private final Resource resource
    • spanLimitsSupplier

      private final Supplier<SpanLimits> spanLimitsSupplier
    • sampler

      private final Sampler sampler
    • activeSpanProcessor

      private final SpanProcessor activeSpanProcessor
    • shutdownResult

      @Nullable private volatile CompletableResultCode shutdownResult
  • Constructor Details

  • Method Details

    • getClock

      Clock getClock()
    • getIdGenerator

      IdGenerator getIdGenerator()
    • isIdGeneratorSafeToSkipIdValidation

      boolean isIdGeneratorSafeToSkipIdValidation()
    • getResource

      Resource getResource()
    • getSpanLimits

      SpanLimits getSpanLimits()
      Returns the current SpanLimits.
    • getSampler

      Sampler getSampler()
      Returns the configured Sampler.
    • getActiveSpanProcessor

      SpanProcessor getActiveSpanProcessor()
      Returns the active SpanProcessor.
      Returns:
      the active SpanProcessor.
    • hasBeenShutdown

      boolean hasBeenShutdown()
      Returns true if tracing has been shut down.
      Returns:
      true if tracing has been shut down.
    • shutdown

      Stops tracing, including shutting down processors and set to true hasBeenShutdown().
      Returns:
      a CompletableResultCode that will be completed when the span processor is shut down.