Class AppCentricTracer (2.75.0)

public class AppCentricTracer 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 > AppCentricTracer

Implements

ApiTracer

Static Fields

DEFAULT_LANGUAGE

public static final String DEFAULT_LANGUAGE
Field Value
Type Description
String

LANGUAGE_ATTRIBUTE

public static final String LANGUAGE_ATTRIBUTE
Field Value
Type Description
String

Constructors

AppCentricTracer(TraceManager traceManager, ApiTracerContext apiTracerContext, String attemptSpanName)

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

Creates a new instance of AppCentricTracer.

Parameters
Name Description
traceManager TraceManager

the TraceManager to use for recording spans

apiTracerContext 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 Object
attemptNumber int

attemptSucceeded()

public void attemptSucceeded()

Adds an annotation that the attempt succeeded.