Class TracingHelper


  • public final class TracingHelper
    extends Object
    Utilities for tracing in helidon.
    • Method Detail

      • httpPathMethodName

        public static String httpPathMethodName​(javax.ws.rs.container.ContainerRequestContext requestContext)
        Name is generated from path as {http-method}:{request-path}.
        Parameters:
        requestContext - context to extract information from
        Returns:
        name of span to use
      • classMethodName

        public static String classMethodName​(javax.ws.rs.container.ContainerRequestContext requestContext)
        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

        public String generateSpanName​(javax.ws.rs.container.ContainerRequestContext context)
        Generate span using the function provided by create(Function).
        Parameters:
        context - request context of the container
        Returns:
        name of the span to use