googleapis / google-http-java-client

Google HTTP Client Library for Java
Apache License 2.0
1.39k stars 452 forks source link

Replace OpenCensus with OpenTelemetry #1483

Open dansiviter opened 3 years ago

dansiviter commented 3 years ago

Is your feature request related to a problem? Please describe. Difficult to bridge between OpenCensus, OpenTracing and OpenTelemetry. As OpenTelemetry is has superseded OpenCensus and OpenTracing, leverage that to reduce the complexity.

Describe the solution you'd like OpenCensus functionality dropped for OpenTelemetry.

Describe alternatives you've considered N/A

Additional context N/A

lesv commented 3 years ago

This needs a design doc if we choose to do it.

DevDavido commented 1 year ago

An update on this topic from the census-instrumentation/opencensus-java repository:

OpenCensus and OpenTracing have merged to form OpenTelemetry, which serves as the next major version of OpenCensus and OpenTracing.

OpenTelemetry has now reached feature parity with OpenCensus, with tracing and metrics SDKs available in .NET, Golang, Java, NodeJS, and Python. All OpenCensus Github repositories, except census-instrumentation/opencensus-python, will be archived on July 31st, 2023. We encourage users to migrate to OpenTelemetry by this date.

ThomasKasene commented 9 months ago

OpenCensus is rolling an outdated version of io.grpc:grpc-context which causes a dependency convergence error when pulling in the google-http-client as a dependency, which I suppose is going to stop a lot of upgrades:

Error:  Dependency convergence error for io.grpc:grpc-context:jar:1.60.1 paths to dependency are:
Error:  [...]
Error:        +-com.google.http-client:google-http-client:jar:1.44.1:compile
Error:          +-io.grpc:grpc-context:jar:1.60.1:compile
Error:  and
Error:  [...]
Error:        +-com.google.http-client:google-http-client:jar:1.44.1:compile
Error:          +-io.opencensus:opencensus-api:jar:0.31.1:compile
Error:            +-io.grpc:grpc-context:jar:1.27.2:compile
damjad commented 5 months ago

Hello,

Is there any future work planned on this? OpenTelemetry has come a long way and OpenCensus is retired in favor of OpenTelemetry.

jtnord commented 4 months ago

noting https://github.com/googleapis/google-http-java-client/pull/834 (and that this obsoletes #621)

jonatan-ivanov commented 4 months ago

You might want to consider this so that you can use tracing/metrics/etc. libraries through a common API/abstraction and use whatever implementation you/your users want under the hood: https://github.com/googleapis/google-http-java-client/issues/1868

SamsonChris71 commented 3 months ago

Hello Team,

Is there any update on replacing OpenCensus with OpenTelemetry? Is this task currently under development? If yes, can you please provide a rough ETA for this release please?

blakeli0 commented 3 months ago

Hey @SamsonChris71, there is no active development regarding OpenTelemetry in this repo at this moment.