Package 

Class OtelSpan

  • All Implemented Interfaces:
    io.opentelemetry.api.trace.Span , io.opentelemetry.context.ImplicitContextKeyed

    
    public class OtelSpan
     implements Span
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private StatusCode statusCode
    • Constructor Summary

      Constructors 
      Constructor Description
      OtelSpan(AgentSpan delegate, AgentTracer.TracerAPI agentTracer)
    • Method Summary

      Modifier and Type Method Description
      StatusCode getStatusCode()
      static Span invalid()
      <T> Span setAttribute(AttributeKey<T> key, T value)
      Span addEvent(String name, Attributes attributes)
      Span addEvent(String name, Attributes attributes, long timestamp, TimeUnit unit)
      Span setStatus(StatusCode statusCode, String description)
      Span recordException(Throwable exception, Attributes additionalAttributes)
      Span updateName(String name)
      void end()
      void end(long timestamp, TimeUnit unit)
      SpanContext getSpanContext()
      boolean isRecording()
      AgentScope activate()
      AgentSpan.Context getAgentSpanContext()
      • Methods inherited from class io.opentelemetry.api.trace.Span

        addEvent, current, end, fromContext, fromContextOrNull, getInvalid, getSpanContext, isRecording, recordException, setAllAttributes, setAttribute, setStatus, storeInContext, updateName, wrap
      • Methods inherited from class io.opentelemetry.context.ImplicitContextKeyed

        makeCurrent
      • Methods inherited from class java.lang.Object

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