micronaut-projects / micronaut-gcp

Integration between Micronaut and Google Cloud Platform (GCP)
Apache License 2.0
50 stars 35 forks source link

Micronaut 4.4.2 + GCP Tracing 5.5.0 Dependency Issue #1122

Open jjathman opened 3 months ago

jjathman commented 3 months ago

Expected Behavior

A brand new Micronaut 4.4.2 application using GCP Tracing should run successfully.

Actual Behaviour

There is a runtime type error due to the StackdriverSender class from zipkin-sender-stackdriver v1.1.1 which has an incompatible method getEncoding that conflicts with BytesMessageSender.

Maybe a conflict with the Zipkin reporter library?

Steps To Reproduce

Create a new MN application and attempt to use the GCP tracing library.

Environment Information

No response

Example Application

No response

Version

4.4.2

roberto-morenoperez commented 1 month ago

Same problem here with micronaut 4.5.0 and micronaut-gcp-tracing 5.6.0. Looks similar to this one in spring boot https://github.com/spring-projects/spring-boot/issues/40914. There it is suggested to upgrade to brave 6 but the transitive dependency with those versions is already 6.0.3