Class StatsWrapper (2.12.0)

public class StatsWrapper

Wrapper class for accessing opencensus. We use a shaded version of opencensus to avoid polluting the global opencensus namespace. And this provides a facade that will not be relocated.

Inheritance

java.lang.Object > StatsWrapper

Static Methods

createRecorder(ApiTracerFactory.OperationType operationType, SpanName spanName, Map<String,String> statsAttributes)

public static StatsRecorderWrapper createRecorder(ApiTracerFactory.OperationType operationType, SpanName spanName, Map<String,String> statsAttributes)
Parameters
NameDescription
operationTypeOperationType
spanNameSpanName
statsAttributesMap<String,String>
Returns
TypeDescription
StatsRecorderWrapper

getOperationLatencyViewTagValueStrings()

public static List<String> getOperationLatencyViewTagValueStrings()
Returns
TypeDescription
List<String>

Constructors

StatsWrapper()

public StatsWrapper()