Shape the future of software operations and make your voice heard by taking the 2021 State of DevOps survey.

Client libraries

For your application to submit traces to Cloud Trace, it must be instrumented. You can instrument your code by using the Google client libraries. However, it's recommended that you use OpenTelemetry or OpenCensus to instrument your application. These are open source tracing packages. OpenTelemetry is actively in development and is the preferred package.

Across all languages, Google is transitioning to make use of OpenTelemetry libraries. These are a set of open source tracing and stats instrumentation libraries that work with multiple backends. You can continue to use the OpenCensus libraries.

Set up information for the OpenTelemetry library:

Set up information for the OpenCensus library:

Set up information for the Google client library:

You can also receive traces from Zipkin tracers. For more information, go to Using Cloud Trace with Zipkin.