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