Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Sample code broken #79

Open
gvasquez95 opened this issue Jun 7, 2024 · 1 comment
Open

[Bug]: Sample code broken #79

gvasquez95 opened this issue Jun 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gvasquez95
Copy link

What happened?

Quickstart code yields the following error messages:

error[E0277]: the trait bound `XrayPropagator: TextMapPropagator` is not satisfied
  --> src/main.rs:38:37
   |
38 |     global::set_text_map_propagator(XrayPropagator::default());
   |     ------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TextMapPropagator` is not implemented for `XrayPropagator`
   |     |
   |     required by a bound introduced by this call
   |
   = help: the following other types implement trait `TextMapPropagator`:
             TextMapCompositePropagator
             NoopTextMapPropagator
             BaggagePropagator
             TraceContextPropagator
note: required by a bound in `set_text_map_propagator`
  --> /Users/xxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opentelemetry-0.23.0/src/global/propagation.rs:15:35
   |
15 | pub fn set_text_map_propagator<P: TextMapPropagator + Send + Sync + 'static>(propagator: P) {
   |                                   ^^^^^^^^^^^^^^^^^ required by this bound in `set_text_map_propagator`

Using these versions in Cargo.toml:

opentelemetry = "0.23.0"
opentelemetry-aws = "0.10.0"
opentelemetry-otlp = "0.16.0"
opentelemetry_sdk = "0.23.0"

API Version

0.23.0

SDK Version

0.23.0

What component are you working with?

No response

Relevant log output

No response

@gvasquez95 gvasquez95 added the bug Something isn't working label Jun 7, 2024
@cijothomas
Copy link
Member

Most likely, incompat version issue! Would you be interesting in trying and fixing the same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants