Skip to content

all: Support OpenTelemetry for traces exported from client methods #4237

@ahmetb

Description

@ahmetb

Right now Cloud client libraries for Go have direct integration with OpenCensus, which is an amazing feature.

However, the Google recommendation is to use OpenTelemetry at this point:

Cloud Trace recommends using OpenTelemetry. OpenTelemetry is an open-source product from the merger between OpenCensus and OpenTracing. ​OpenTelemetry is an open-source product from the merger between OpenCensus and OpenTracing.

(I do not agree with this and I listed why at http://doc/1R82XXlE8dVt1C-kLYRH2gFLVCzSgKiRna0yroZTsjhs which is an internal friction log for reasons.)

Right now, if you use cloud.google.com/go packages but you have instrumented your app using OpenTelemetry, you can get traces using the opencensus-bridge which largely works (you just pay attention to not get yourself in an infinite loop).

So this is not very urgent, however we should probably do this in the long term since OT will be way to Go and it's better to come up with a migration plan (that is graceful to OpenCensus users) sooner than later.

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions