kubemq-io / kubemq-Java

Java client library for KubeMQ server
https://kubemq.io
MIT License
27 stars 10 forks source link

Use newer version of grpc to get newer version of opencensus-api #11

Closed pavelgajdos closed 1 year ago

pavelgajdos commented 3 years ago

Hi,

I need to use com.google.api-client:google-api-client:1.32.1 which uses com.google.http-client:google-http-client which uses io.opencensus:opencensus-api:0.28.0

Your SDK uses io.opencensus:opencensus-api:0.12.3 required by some io.grpc dependency.

Gradle resolves the dependency to the newer version io.opencensus:opencensus-api:0.28.0.

When using your SDK with the latest version of opencensus-api, the problem is in usage of io.opencensus.trace.unsafe.ContextUtils.CONTEXT_SPAN_KEY which had been deprecated for some time and has been private since io.opencensus:opencensus-api:0.24.0.

See the difference of versions of io.opencensus:opencensus-api here:

I made it work with usage of com.google.api-client:google-api-client:1.30.2, however this version is from Jul 02, 2019, over 2 years old now.

Do you think it is possible to fix this?

Thank you and keep up the good work!

liornabat commented 3 years ago

We will check

kubemq commented 1 year ago

Deps were updated