Class SpanTracer (2.76.0)

  public 
  
 class 
 SpanTracer 
  
 implements 
  
 ApiTracer 
 

An implementation of ApiTracer that uses a TraceManager to record traces. This implementation is agnostic to the specific TraceManager in order to allow extensions that interact with other backends.

Inheritance

Object > SpanTracer

Implements

ApiTracer

Static Fields

DEFAULT_LANGUAGE

  public 
  
 static 
  
 final 
  
 String 
  
 DEFAULT_LANGUAGE 
 
Field Value
Type
Description

LANGUAGE_ATTRIBUTE

  public 
  
 static 
  
 final 
  
 String 
  
 LANGUAGE_ATTRIBUTE 
 
Field Value
Type
Description

Constructors

SpanTracer(TraceManager traceManager, ApiTracerContext apiTracerContext, String attemptSpanName)

  public 
  
 SpanTracer 
 ( 
 TraceManager 
  
 traceManager 
 , 
  
 ApiTracerContext 
  
 apiTracerContext 
 , 
  
 String 
  
 attemptSpanName 
 ) 
 

Creates a new instance of SpanTracer .

Parameters
Name
Description
traceManager
TraceManager

the TraceManager to use for recording spans

apiTracerContext
attemptSpanName
String

the name of the individual attempt spans

Methods

attemptStarted(Object request, int attemptNumber)

  public 
  
 void 
  
 attemptStarted 
 ( 
 Object 
  
 request 
 , 
  
 int 
  
 attemptNumber 
 ) 
 

Adds an annotation that an attempt is about to start with additional information from the request. In general this should occur at the very start of the operation. The attemptNumber is zero based. So the initial attempt will be 0.

Parameters
Name
Description
request
attemptNumber
int

attemptSucceeded()

  public 
  
 void 
  
 attemptSucceeded 
 () 
 

Adds an annotation that the attempt succeeded.

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