Uses of Interface
org.axonframework.messaging.tracing.SpanScope
Packages that use SpanScope
Package
Description
The tracing API of Axon Framework:
SpanFactory, Span, SpanScope, and
SpanAttributesProvider, plus the logging and no-op factory implementations.-
Uses of SpanScope in org.axonframework.messaging.tracing
Fields in org.axonframework.messaging.tracing with type parameters of type SpanScopeModifier and TypeFieldDescriptionstatic final Context.ResourceKey<SpanScope> SpanScope.RESOURCE_KEYResource key under which the activeSpanScopeis carried on aProcessingContext-- either on the root context (written bySpan.coverLifecycle(ProcessingContext)) or on an immutable branch (viaaddToContext(ProcessingContext, SpanScope)) -- and read withfromContext(ProcessingContext).Methods in org.axonframework.messaging.tracing that return SpanScopeModifier and TypeMethodDescriptiondefault SpanScopeSpan.coverLifecycle(ProcessingContext context) Starts this span to cover the givenProcessingContext's lifecycle: starts the span, records itsSpanScopeon the context's root underRESOURCE_KEY(last-writer-wins -- matchingMessage.RESOURCE_KEY), records any processing error on the span, and closes the scope when the context completes (on both the success and error paths).static @Nullable SpanScopeSpanScope.fromContext(ProcessingContext context) Span.start()Starts this span and returns itsSpanScope, without writing anything to aProcessingContext.Methods in org.axonframework.messaging.tracing with parameters of type SpanScopeModifier and TypeMethodDescriptionstatic ProcessingContextSpanScope.addToContext(ProcessingContext context, SpanScope scope)