Skip to content

is defining the GOOGLE_CLOUD_CPP_OPENTELEMETRY_TRACING environment variable all I need? #13765

Answered by dbolduc
willie asked this question in Q&A
Discussion options

You must be logged in to vote

Argh, sorry, this is a bug. Thanks for the report.

In the latest version of google-cloud-cpp, the storage and bigtable libraries do not respect the GOOGLE_CLOUD_CPP_OPENTELEMETRY_TRACING variable. This is not by design. It was an oversight.

I fixed this for bigtable in #13748. I will send a PR to fix storage.

I think your options are to:

A. Explicitly set OpenTelemetryTracingOption in your client. e.g.

// Create a client with OpenTelemetry tracing enabled.
auto options = gc::Options{}.set<gc::OpenTelemetryTracingOption>(true);
auto client = gcs::Client(options);

B. Wa…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@willie
Comment options

@dbolduc
Comment options

Answer selected by willie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants