Class OpenCensusUtil (1.126.6)

public class OpenCensusUtil

Utilities for propagating OpenCensus TagContext and SpanContext from publishers to subscribers.

Inheritance

java.lang.Object > OpenCensusUtil

Static Fields

OPEN_CENSUS_MESSAGE_TRANSFORM

public static final ApiFunction<PubsubMessage,PubsubMessage> OPEN_CENSUS_MESSAGE_TRANSFORM

Propagates active OpenCensus trace and tag contexts from the Publisher by adding them as attributes to the PubsubMessage.

Field Value
TypeDescription
ApiFunction<PubsubMessage,PubsubMessage>

TAG_CONTEXT_KEY

public static final String TAG_CONTEXT_KEY
Field Value
TypeDescription
String

TRACE_CONTEXT_KEY

public static final String TRACE_CONTEXT_KEY
Field Value
TypeDescription
String

Constructors

OpenCensusUtil()

public OpenCensusUtil()