| Constructor and Description |
|---|
SpanName() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getClientName()
The name of the client.
|
abstract String |
getMethodName()
The name of the logical operation being traced.
|
static SpanName |
of(String clientName,
String methodName)
Creates a new instance of the name.
|
String |
toString() |
SpanName |
withClientName(String clientName)
Creates a new instance with the clientName overriden.
|
SpanName |
withMethodName(String methodName)
Creates a new instance with the methodName overriden.
|
public static SpanName of(String clientName, String methodName)
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.public abstract String getClientName()
public abstract String getMethodName()
public SpanName withClientName(String clientName)
public SpanName withMethodName(String methodName)