You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, which one should be used, as new implementation would rather not follow an approach if it's due to be removed? Can the documentation be updated to make it clearer?
The second issue was when following the guide, we had incompatibilities flagged up due to the guava versions imported.
Exception in thread "BaseSpanProcessor_WorkerThread-1" java.lang.IncompatibleClassChangeError: Class com.google.common.base.Suppliers$NonSerializableMemoizingSupplier does not implement the requested interface java.util.function.Suppliers$NonSerializableMemoizingSupplier
at com.google.cloud.opentelemetry.trace.TraceExporter.export(TraceExporter.java:93)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.exportCurrentBatch(BatchSpanProcessor.java:327)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:245)
It took a while, but ultimately the issue is because we had the following defined in our dependencies, which ultimately puts guava 32.0.0-android on the classpath. In order to workaround we've had to explicitly define guava to be a jre version to fix the above issue, as unfortunately also bring in things like cloud-sql-connector-r2dbc-postgres which also brings in guava android version. Can anything be done to ensure the jre version of guava is always imported rather than the android version?
Expected Behavior
Documentation should be consistent, and work without issue
Actual Behaviour
We're trying to implement tracing in a GCP deployed application and have hit two related issues (can raise as separate tickets if that helps?)
The documentation on https://micronaut-projects.github.io/micronaut-gcp/latest/guide/#tracing indicates to use "micronaut-gcp-tracing", which we had working for http methods but not self-defined ones (presumed some annotation processor missing), so tried to follow through to the guide linked from those docs -> https://guides.micronaut.io/latest/micronaut-cloud-trace-google.html but this defines a completely different implementation using the otel libraries plus googles exporter-auto library.
So, which one should be used, as new implementation would rather not follow an approach if it's due to be removed? Can the documentation be updated to make it clearer?
The second issue was when following the guide, we had incompatibilities flagged up due to the guava versions imported.
It took a while, but ultimately the issue is because we had the following defined in our dependencies, which ultimately puts guava 32.0.0-android on the classpath. In order to workaround we've had to explicitly define guava to be a jre version to fix the above issue, as unfortunately also bring in things like cloud-sql-connector-r2dbc-postgres which also brings in guava android version. Can anything be done to ensure the jre version of guava is always imported rather than the android version?
Steps To Reproduce
See Actual Behaviour section above
Environment Information
Windows/Unix
Example Application
n/a
Version
4.3.4
The text was updated successfully, but these errors were encountered: