Skip to content

[Bug]: Sample code broken #79

Closed
Closed
@gvasquez95

Description

@gvasquez95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions