Class ApiTracerContext (2.76.0)

  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.

Inheritance

java.lang.Object > ApiTracerContext

Static Methods

empty()

  public 
  
 static 
  
 ApiTracerContext 
  
 empty 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 ApiTracerContext 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

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

the operation type, or null if not set

serverPort()

  public 
  
 abstract 
  
 Integer 
  
 serverPort 
 () 
 

Returns the server port of the RPC.

Example: 1337. This maps to the server.port attribute.

Returns
Type
Description

the server port, or null if not set

serviceName()

  public 
  
 abstract 
  
 String 
  
 serviceName 
 () 
 

The service name of a client (e.g. "bigtable", "spanner").

Returns
Type
Description

toBuilder()

  public 
  
 abstract 
  
 ApiTracerContext 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

urlDomain()

  public 
  
 abstract 
  
 String 
  
 urlDomain 
 () 
 

The url domain of the request (e.g. "pubsub.googleapis.com").

Returns
Type
Description

urlTemplate()

  public 
  
 abstract 
  
 String 
  
 urlTemplate 
 () 
 

The url template of the request (e.g. /v1/{name}:access).

Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: