Class AddThreadDetailsSpanProcessor

java.lang.Object
io.opentelemetry.instrumentation.thread.internal.AddThreadDetailsSpanProcessor
All Implemented Interfaces:
io.opentelemetry.sdk.trace.SpanProcessor, Closeable, AutoCloseable

public class AddThreadDetailsSpanProcessor extends Object implements io.opentelemetry.sdk.trace.SpanProcessor
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.opentelemetry.api.common.AttributeKey<Long>
     
    static final io.opentelemetry.api.common.AttributeKey<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.common.CompletableResultCode
     
    boolean
     
    boolean
     
    void
    onEnd(io.opentelemetry.sdk.trace.ReadableSpan span)
     
    void
    onStart(io.opentelemetry.context.Context context, io.opentelemetry.sdk.trace.ReadWriteSpan span)
     
    io.opentelemetry.sdk.common.CompletableResultCode
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.opentelemetry.sdk.trace.SpanProcessor

    close
  • Field Details

    • THREAD_ID

      public static final io.opentelemetry.api.common.AttributeKey<Long> THREAD_ID
    • THREAD_NAME

      public static final io.opentelemetry.api.common.AttributeKey<String> THREAD_NAME
  • Constructor Details

    • AddThreadDetailsSpanProcessor

      public AddThreadDetailsSpanProcessor()
  • Method Details

    • onStart

      public void onStart(io.opentelemetry.context.Context context, io.opentelemetry.sdk.trace.ReadWriteSpan span)
      Specified by:
      onStart in interface io.opentelemetry.sdk.trace.SpanProcessor
    • isStartRequired

      public boolean isStartRequired()
      Specified by:
      isStartRequired in interface io.opentelemetry.sdk.trace.SpanProcessor
    • onEnd

      public void onEnd(io.opentelemetry.sdk.trace.ReadableSpan span)
      Specified by:
      onEnd in interface io.opentelemetry.sdk.trace.SpanProcessor
    • isEndRequired

      public boolean isEndRequired()
      Specified by:
      isEndRequired in interface io.opentelemetry.sdk.trace.SpanProcessor
    • shutdown

      public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
      Specified by:
      shutdown in interface io.opentelemetry.sdk.trace.SpanProcessor
    • forceFlush

      public io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
      Specified by:
      forceFlush in interface io.opentelemetry.sdk.trace.SpanProcessor