public class TracingHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
classMethodName(ContainerRequestContext requestContext)
Name is generated from class and method as {http-method}:{fully-qualified-class-name}.{method-name}.
|
static TracingHelper |
create()
Create helper with default span name function.
|
static TracingHelper |
create(Function<ContainerRequestContext,String> nameFunction)
Create helper with custom span name function.
|
String |
generateSpanName(ContainerRequestContext context)
Generate span using the function provided by
create(Function). |
static String |
httpPathMethodName(ContainerRequestContext requestContext)
Name is generated from path as {http-method}:{request-path}.
|
public static TracingHelper create()
classMethodName(ContainerRequestContext)public static TracingHelper create(Function<ContainerRequestContext,String> nameFunction)
nameFunction - function to get span name from contextclassMethodName(ContainerRequestContext),
httpPathMethodName(ContainerRequestContext)public static String httpPathMethodName(ContainerRequestContext requestContext)
requestContext - context to extract information frompublic static String classMethodName(ContainerRequestContext requestContext)
requestContext - context to extract information frompublic String generateSpanName(ContainerRequestContext context)
create(Function).context - request context of the containerCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.