Package com.google.api.gax.tracing
Class SpanName
- java.lang.Object
-
- com.google.api.gax.tracing.SpanName
-
@BetaApi("Surface for tracing is not yet stable") @InternalApi("For google-cloud-java client use only") public abstract class SpanName extends Object
A value class to represent the name of the operation in anApiTracer.
-
-
Constructor Summary
Constructors Constructor Description SpanName()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetClientName()The name of the client.abstract StringgetMethodName()The name of the logical operation being traced.static SpanNameof(String clientName, String methodName)Creates a new instance of the name.StringtoString()
-
-
-
Method Detail
-
of
public static SpanName of(String clientName, String methodName)
Creates a new instance of the name.- Parameters:
clientName- The name of the client. In general this will be GAPIC generated client name. However, in some cases, when the GAPIC generated client is wrapped, this will be overridden to specify the manually written wrapper's name.methodName- The name of the logical operation being traced.
-
getClientName
public abstract String getClientName()
The name of the client. ie BigtableData
-
getMethodName
public abstract String getMethodName()
The name of the logical operation being traced. ie. ReadRows.
-
-