public class OpenCensusUtil extends Object
TagContext
and SpanContext
from publishers
to subscribers.Modifier and Type | Class and Description |
---|---|
static class |
OpenCensusUtil.OpenCensusMessageReceiver
Wrapper class for
MessageReceiver that decodes any received trace and tag contexts and
puts them in scope. |
Modifier and Type | Field and Description |
---|---|
static ApiFunction<com.google.pubsub.v1.PubsubMessage,com.google.pubsub.v1.PubsubMessage> |
OPEN_CENSUS_MESSAGE_TRANSFORM
Propagates active OpenCensus trace and tag contexts from the Publisher by adding them as
attributes to the
PubsubMessage . |
static String |
TAG_CONTEXT_KEY |
static String |
TRACE_CONTEXT_KEY |
Constructor and Description |
---|
OpenCensusUtil() |
public static final String TAG_CONTEXT_KEY
public static final String TRACE_CONTEXT_KEY
public static final ApiFunction<com.google.pubsub.v1.PubsubMessage,com.google.pubsub.v1.PubsubMessage> OPEN_CENSUS_MESSAGE_TRANSFORM
PubsubMessage
.Copyright © 2019 Google LLC. All rights reserved.