Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Prefer library version for gRPC instead of shaded.#1825

Merged
songy23 merged 1 commit intocensus-instrumentation:masterfrom
songy23:grpc-deps
Apr 10, 2019
Merged

Prefer library version for gRPC instead of shaded.#1825
songy23 merged 1 commit intocensus-instrumentation:masterfrom
songy23:grpc-deps

Conversation

@songy23
Copy link
Copy Markdown
Contributor

@songy23 songy23 commented Mar 29, 2019

Previously if the cloud client libraries use a different version of gRPC than opencensus-api, users may need to manually resolve the version conflicts. For example,

  • cloud-monitoring depends on grpc-core 1.18.0
  • opencensus-api depends on grpc-core 1.19.0

If users have both opencensus-stackdriver-exporter and opencensus-api in the same pom.xml file, Maven will complain about version conflicts, or build may succeed but users will get errors at runtime like https://github.com/census-instrumentation/opencensus-java/tree/master/exporters/stats/stackdriver#why-did-i-get-an-error-javalangnosuchmethoderror-comgooglecommon-like-javalangnosuchmethoderrorcomgooglecommonbasethrowablesthrowifinstanceof.

This PR may be able to help with this kind of issue.

@songy23 songy23 merged commit 8564d81 into census-instrumentation:master Apr 10, 2019
@songy23 songy23 deleted the grpc-deps branch April 10, 2019 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants