public class EventSpanContext extends Object implements SpanContext
SpanContext associated to an event.
A CoreEvent is the component that travels through the execution of a flow. For tracing
purposes the EventContext has a SpanContext that has information that may be
propagated through runtime boundaries for distributed tracing purposes.| Modifier and Type | Class and Description |
|---|---|
static class |
EventSpanContext.EventSpanContextBuilder
Builder for
EventSpanContext |
| Modifier and Type | Method and Description |
|---|---|
static EventSpanContext.EventSpanContextBuilder |
builder() |
SpanContext |
copy() |
void |
endSpan(Assertion assertion) |
Optional<InternalSpan> |
getSpan() |
void |
recordErrorAtSpan(InternalSpanError error) |
void |
setSpan(InternalSpan span,
Assertion assertion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemptyDistributedTraceContextpublic static EventSpanContext.EventSpanContextBuilder builder()
public SpanContext copy()
copy in interface SpanContextpublic void endSpan(Assertion assertion)
endSpan in interface SpanContextpublic void recordErrorAtSpan(InternalSpanError error)
recordErrorAtSpan in interface SpanContextpublic void setSpan(InternalSpan span, Assertion assertion) throws AssertionFailedException
setSpan in interface SpanAwareAssertionFailedExceptionpublic Optional<InternalSpan> getSpan()
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.