Package 

Class ContinuableScopeManager

  • All Implemented Interfaces:
    com.datadog.trace.bootstrap.instrumentation.api.AgentScopeManager , com.datadog.trace.bootstrap.instrumentation.api.ScopeStateAware

    
    public final class ContinuableScopeManager
     implements AgentScopeManager
                        

    The primary ScopeManager. This class has ownership of the core ThreadLocal containing the currently active Scope. Such scopes can be suspended with a Continuation to prevent the trace from being reported even if all related spans are finished. It also delegates to other ScopeInterceptors to provide additional functionality.

    • Constructor Detail

      • ContinuableScopeManager

        ContinuableScopeManager(int depthLimit, boolean strictMode, boolean inheritAsyncPropagation, InternalLogger internalLogger)
        Constructor with NOOP Profiling and HealthMetrics implementations.
        Parameters:
        depthLimit - The maximum scope depth limit, 0 for unlimited.
        strictMode - Whether check if the closed spans are the active ones or not.
        inheritAsyncPropagation - Whether the next span should inherit the active spanasyncPropagation flag.
      • ContinuableScopeManager

        ContinuableScopeManager(int depthLimit, boolean strictMode, boolean inheritAsyncPropagation, ProfilingContextIntegration profilingContextIntegration, HealthMetrics healthMetrics, InternalLogger internalLogger)
        Default constructor.
        Parameters:
        depthLimit - The maximum scope depth limit, 0 for unlimited.
        strictMode - Whether check if the closed spans are the active ones or not.
        inheritAsyncPropagation - Whether the next span should inherit the active spanasyncPropagation flag.