Package com.google.api.gax.tracing
Class ApiTracerContext
java.lang.Object
com.google.api.gax.tracing.ApiTracerContext
A context object that contains information used to infer attributes that are common for all
ApiTracers.
For internal use only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiTracerContextempty()static ApiTracerContext.Builderabstract ApiTracerFactory.OperationTypeReturns the type of operation theApiTraceris tracing.abstract IntegerReturns the server port of the RPC.abstract StringThe service name of a client (e.g.abstract ApiTracerContext.Builderabstract StringThe url domain of the request (e.g.abstract StringThe url template of the request (e.g.
-
Constructor Details
-
ApiTracerContext
public ApiTracerContext()
-
-
Method Details
-
serverPort
Returns the server port of the RPC.Example: 1337. This maps to the
server.portattribute.- Returns:
- the server port, or
nullif not set
-
operationType
Returns the type of operation theApiTraceris tracing.- Returns:
- the operation type, or
nullif not set
-
serviceName
The service name of a client (e.g. "bigtable", "spanner"). -
urlDomain
The url domain of the request (e.g. "pubsub.googleapis.com"). -
urlTemplate
The url template of the request (e.g. /v1/{name}:access). -
getAttemptAttributes
- Returns:
- a map of attributes to be included in attempt-level spans
-
empty
-
newBuilder
-
toBuilder
-