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
Right now tonic is used in two quite different ways: 1) it is an internal library that facilitates e.g. grpc handling and 2) tonic types are part of the public interface of opentelemetry-otlp.
For case (2) it would be really nice to have access to the version of tonic that opentelemetry-otlp expects as a re-export, rather than having to do lock-step upgrades of opentelemetry & tonic across our codebases.
something as simple as a pub use tonic in the root of opentelemetry-otlp might well be enough to fix this.
The challenge here is that without reference to an exactly matching tonic version, this code will fail like so:
error[E0308]: mismatched types
Error: --> src/tracing.rs:148:40
|
148 | .with_metadata(map)
| ------------- ^^^ expected struct `tonic::metadata::map::MetadataMap`, found struct `tonic::metadata::map::MetadataMap`
| |
| arguments to this function are incorrect
|
= note: perhaps two different versions of crate `tonic` are being used?
note: associated function defined here
--> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/opentelemetry-otlp-0.10.0/src/exporter/tonic.rs:44:12
|
44 | pub fn with_metadata(mut self, metadata: MetadataMap) -> Self {
| ^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
Right now tonic is used in two quite different ways: 1) it is an internal library that facilitates e.g. grpc handling and 2) tonic types are part of the public interface of opentelemetry-otlp.
For case (2) it would be really nice to have access to the version of tonic that opentelemetry-otlp expects as a re-export, rather than having to do lock-step upgrades of opentelemetry & tonic across our codebases.
something as simple as a pub use tonic in the root of opentelemetry-otlp might well be enough to fix this.
Example of (2) code today:
The challenge here is that without reference to an exactly matching tonic version, this code will fail like so:
The text was updated successfully, but these errors were encountered: