Class SpanName (2.67.0)

Beta

This library is covered by thePre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see thelaunch stage descriptions.

publicabstractclassSpanName

A value class to represent the name of the operation in anApiTracer.

Inheritance

java.lang.Object >SpanName

Static Methods

of(String clientName, String methodName)

publicstaticSpanNameof(StringclientName,StringmethodName)

Creates a new instance of the name.

Parameters
NameDescription
clientNameString

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.

methodNameString

The name of the logical operation being traced.

Returns
TypeDescription
SpanName

Constructors

SpanName()

publicSpanName()

Methods

getClientName()

publicabstractStringgetClientName()

The name of the client. ie BigtableData

Returns
TypeDescription
String

getMethodName()

publicabstractStringgetMethodName()

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

Returns
TypeDescription
String

toString()

publicStringtoString()
Returns
TypeDescription
String
Overrides

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

Last updated 2025-12-17 UTC.