Class OpenCensusUtil (1.133.0)

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
Type Description
ApiFunction<PubsubMessage,PubsubMessage>

TAG_CONTEXT_KEY

public static final String TAG_CONTEXT_KEY
Field Value
Type Description
String

TRACE_CONTEXT_KEY

public static final String TRACE_CONTEXT_KEY
Field Value
Type Description
String

Constructors

OpenCensusUtil()

public OpenCensusUtil()