googleapis / google-http-java-client

Google HTTP Client Library for Java
Apache License 2.0
1.38k stars 446 forks source link

Replace OpenCensus with OpenTelemetry #1483

Open dansiviter opened 2 years ago

dansiviter commented 2 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 2 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 4 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 1 week ago

Hello,

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