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

Error compiling with --all-features #1417

Closed
mbridon opened this issue Nov 30, 2024 · 1 comment · Fixed by #1430
Closed

Error compiling with --all-features #1417

mbridon opened this issue Nov 30, 2024 · 1 comment · Fixed by #1430

Comments

@mbridon
Copy link

mbridon commented Nov 30, 2024

I tried to compile divviup-api with --all-features:

$ cargo build --release --all-features
[... snip compilation ...]
error[E0599]: no method named `provider` found for struct `opentelemetry_sdk::trace::TracerProvider` in the current scope
  --> src/telemetry.rs:52:14
   |
46 | /         opentelemetry_otlp::new_pipeline()
47 | |             .tracing()
48 | |             .with_trace_config(opentelemetry_sdk::trace::Config::default().with_resource(resource))
49 | |             .with_exporter(opentelemetry_otlp::new_exporter().tonic())
50 | |             .install_batch(opentelemetry_sdk::runtime::Tokio)
51 | |             .unwrap()
52 | |             .provider()
   | |             -^^^^^^^^ method not found in `TracerProvider`
   | |_____________|
   |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `divviup-api` (lib) due to 1 previous error

I'm too much of a Rust noob to understand or provide a patch. 😅

@divergentdave
Copy link
Collaborator

Thanks for the report! Looks like this has been broken since #1205. I filed PR #1430 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants