java.lang.Object
io.helidon.tracing.jersey.TracingHelper
Utilities for tracing in helidon.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringclassMethodName(ContainerRequestContext requestContext) Name is generated from class and method as {http-method}:{fully-qualified-class-name}.{method-name}.static TracingHelpercreate()Create helper with default span name function.static TracingHelpercreate(Function<ContainerRequestContext, String> nameFunction) Create helper with custom span name function.generateSpanName(ContainerRequestContext context) Generate span using the function provided bycreate(Function).static StringhttpPathMethodName(ContainerRequestContext requestContext) Name is generated from path as {http-method}:{request-path}.
-
Method Details
-
create
Create helper with default span name function.- Returns:
- tracing helper
- See Also:
-
create
Create helper with custom span name function.- Parameters:
nameFunction- function to get span name from context- Returns:
- tracing helper
- See Also:
-
httpPathMethodName
Name is generated from path as {http-method}:{request-path}.- Parameters:
requestContext- context to extract information from- Returns:
- name of span to use
-
classMethodName
Name is generated from class and method as {http-method}:{fully-qualified-class-name}.{method-name}.- Parameters:
requestContext- context to extract information from- Returns:
- name of span to use
-
generateSpanName
Generate span using the function provided bycreate(Function).- Parameters:
context- request context of the container- Returns:
- name of the span to use
-