Class Observability.DetachedSpan
java.lang.Object
org.j7m.middleware.integrations.Observability.DetachedSpan
- Enclosing class:
Observability
Thread-safe application span lifetime. It carries no throwable, application value or identity labels.
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.context.Scopeattach()Attaches this span on the current thread, independently of its eventual end.org.j7m.middleware.distributed.TraceCarriercarrier()Returns immutable W3C propagation data without vendor state.voidend()Ends once on any host thread and offers export without waiting for the collector.voidfailed()Marks failure without retaining an application exception or message.
-
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.
-