Class Observability.DetachedSpan

java.lang.Object
org.j7m.middleware.integrations.Observability.DetachedSpan
Enclosing class:
Observability

public final class Observability.DetachedSpan extends Object
Thread-safe application span lifetime. It carries no throwable, application value or identity labels.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.context.Scope
    Attaches this span on the current thread, independently of its eventual end.
    org.j7m.middleware.distributed.TraceCarrier
    Returns immutable W3C propagation data without vendor state.
    void
    end()
    Ends once on any host thread and offers export without waiting for the collector.
    void
    Marks failure without retaining an application exception or message.

    Methods inherited from class Object

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

    • carrier

      public org.j7m.middleware.distributed.TraceCarrier carrier()
      Returns immutable W3C propagation data without vendor state.
      Returns:
      bounded child carrier
    • attach

      public io.opentelemetry.context.Scope attach()
      Attaches this span on the current thread, independently of its eventual end.
      Returns:
      thread-confined idempotent attachment
    • failed

      public void failed()
      Marks failure without retaining an application exception or message.
    • end

      public void end()
      Ends once on any host thread and offers export without waiting for the collector.