Package 

Interface Tracer


  • 
    public interface Tracer
    
                        

    A class with Datadog tracer features.

    • Method Summary

      Modifier and Type Method Description
      abstract String getTraceId() Get the trace id of the active trace.
      abstract String getSpanId() Get the span id of the active span of the active trace.
      abstract boolean addTraceInterceptor(TraceInterceptor traceInterceptor) Add a new interceptor to the tracer.
      abstract void addScopeListener(ScopeListener listener) Attach a scope listener to the global scope manager
      • Methods inherited from class java.lang.Object

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

      • getTraceId

         abstract String getTraceId()

        Get the trace id of the active trace. Returns 0 if there is no active trace.

      • getSpanId

         abstract String getSpanId()

        Get the span id of the active span of the active trace. Returns 0 if there is no active trace.

      • addTraceInterceptor

         abstract boolean addTraceInterceptor(TraceInterceptor traceInterceptor)

        Add a new interceptor to the tracer. Interceptors with duplicate priority to existing ones areignored.

      • addScopeListener

         abstract void addScopeListener(ScopeListener listener)

        Attach a scope listener to the global scope manager

        Parameters:
        listener - listener to attach