Class SpanNames
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.SpanNames
-
public final class SpanNames extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringfromMethod(ClassAndMethod classAndMethod)This method is used to generate a span name based on a method.static StringfromMethod(Class<?> clazz, Method method)This method is used to generate a span name based on a method.static StringfromMethod(Class<?> clazz, String methodName)This method is used to generate a span name based on a method.static StringfromMethod(Method method)This method is used to generate a span name based on a method.
-
-
-
Method Detail
-
fromMethod
public static String fromMethod(Method method)
This method is used to generate a span name based on a method. Anonymous classes are named based on their parent.
-
fromMethod
public static String fromMethod(Class<?> clazz, @Nullable Method method)
This method is used to generate a span name based on a method. Anonymous classes are named based on their parent.
-
fromMethod
public static String fromMethod(ClassAndMethod classAndMethod)
This method is used to generate a span name based on a method. Anonymous classes are named based on their parent.
-
-