Class SpanName (2.67.0)

publicabstractclass SpanName

A value class to represent the name of the operation in an ApiTracer.

Inheritance

java.lang.Object > SpanName

Static Methods

of(String clientName, String methodName)

publicstaticSpanNameof(StringclientName,StringmethodName)

Creates a new instance of the name.

Parameters
Name Description
clientName String

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 String

The name of the logical operation being traced.

Returns
Type Description
SpanName

Constructors

SpanName()

publicSpanName()

Methods

getClientName()

publicabstractStringgetClientName()

The name of the client. ie BigtableData

Returns
Type Description
String

getMethodName()

publicabstractStringgetMethodName()

The name of the logical operation being traced. ie. ReadRows.

Returns
Type Description
String

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.