public
abstract
class
ApiTracerContext
A context object that contains information used to infer attributes that are common for all ApiTracer s.
For internal use only.
Static Methods
empty()
public
static
ApiTracerContext
empty
()
newBuilder()
public
static
ApiTracerContext
.
Builder
newBuilder
()
Constructors
ApiTracerContext()
public
ApiTracerContext
()
Methods
getAttemptAttributes()
public
Map<String
,
Object
>
getAttemptAttributes
()
operationType()
public
abstract
ApiTracerFactory
.
OperationType
operationType
()
Returns the type of operation the ApiTracer is tracing.
serverPort()
public
abstract
Integer
serverPort
()
Returns the server port of the RPC.
Example: 1337. This maps to the server.port
attribute.
serviceName()
public
abstract
String
serviceName
()
The service name of a client (e.g. "bigtable", "spanner").
toBuilder()
public
abstract
ApiTracerContext
.
Builder
toBuilder
()
urlDomain()
public
abstract
String
urlDomain
()
The url domain of the request (e.g. "pubsub.googleapis.com").
urlTemplate()
public
abstract
String
urlTemplate
()
The url template of the request (e.g. /v1/{name}:access).

