Interface TracingSemanticConventions
public interface TracingSemanticConventions
Applies a particular set of semantic conventions to spans created automatically for requests.
Helidon creates a new instance of this interface for each request it traces by invoking TracingSemanticConventionsProvider#create.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies semantic conventions to theSpan
after Helidon has successfully processed the request and prepared the response and just before it ends the span; that is, Helidon has set the response status and entity (if any) and no exception escaped from the request processing.void
Applies semantic conventions theSpan
after Helidon has attempted to process the request just before Helidon ends the span unsuccessfully (with an exception).void
beforeStart
(Span.Builder<?> spanBuilder) Applies semantic conventions to theSpan.Builder
just prior to Helidon using the span builder to create the span for the request.spanName()
Provides the span name Helidon should use to construct theSpan.Builder
.
-
Method Details
-
spanName
String spanName()Provides the span name Helidon should use to construct theSpan.Builder
.- Returns:
- span name
-
beforeStart
Applies semantic conventions to theSpan.Builder
just prior to Helidon using the span builder to create the span for the request.- Parameters:
spanBuilder
- span builder to update
-
beforeEnd
Applies semantic conventions to theSpan
after Helidon has successfully processed the request and prepared the response and just before it ends the span; that is, Helidon has set the response status and entity (if any) and no exception escaped from the request processing.The lack of an exception does not necessarily indicate the response has a successful status, only that the request was processed and the response prepared without error.
- Parameters:
span
- span about to be ended
-
beforeEnd
Applies semantic conventions theSpan
after Helidon has attempted to process the request just before Helidon ends the span unsuccessfully (with an exception). Implementations of this method should not assume that the response status or entity (if appropriate for a given response) have been set,- Parameters:
span
- span about to be endede
- exception thrown as Helidon processed the request
-