Send feedback
Class OpenCensusUtil (1.153.0)
Stay organized with collections
Save and categorize content based on your preferences.
1.153.0 (latest)
1.152.0
1.151.0
1.150.1
1.149.0
1.148.0
1.147.0
1.145.0
1.143.1
1.142.0
1.141.5
1.140.2
1.139.4
1.138.0
1.137.1
1.136.1
1.135.0
1.134.2
1.133.1
1.132.2
1.131.0
1.130.0
1.129.6
1.127.3
1.126.6
1.125.13
1.123.18
1.122.2
1.121.1
1.120.24
1.119.1
1.118.0
1.117.0
1.116.4
1.115.5
public class OpenCensusUtil
Utilities for propagating OpenCensus TagContext and SpanContext from publishers
to subscribers.
Static Fields
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 .
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()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-05 UTC."],[],[]]