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

Otel exporter docs for rust #5473

Open
ashupednekar opened this issue Oct 24, 2024 · 3 comments
Open

Otel exporter docs for rust #5473

ashupednekar opened this issue Oct 24, 2024 · 3 comments
Labels
question Further information is requested sig:rust

Comments

@ashupednekar
Copy link

ashupednekar commented Oct 24, 2024

What needs to be changed?

The init_tracer function in the docs is as follows

fn init_tracer() {
    match SpanExporter::new_tonic(ExportConfig::default(), TonicConfig::default()) {
        Ok(exporter) => {
            global::set_text_map_propagator(TraceContextPropagator::new());
            let provider = TracerProvider::builder()
                .with_simple_exporter(exporter)
                .build();
            global::set_tracer_provider(provider);
        },
        Err(why) => panic!("{:?}", why)
    }

}

Is there any reason for having it this way? why not just do unwrap ?

What is the name + path of the page that needs changed?

The docs section in question is https://opentelemetry.io/docs/languages/rust/exporters/

@ashupednekar ashupednekar added the bug Something isn't working label Oct 24, 2024
@ashupednekar
Copy link
Author

I didn't mean to add the bug label... not sure how to change that

@ashupednekar
Copy link
Author

Also, where is the SpanExporter imported from?

tried opentelemetry_otlp::SpanExporter...

says no function or associated item new_tonic...
is it behind any feature flags?

@svrnm svrnm added sig:rust question Further information is requested and removed bug Something isn't working labels Oct 24, 2024
@svrnm
Copy link
Member

svrnm commented Oct 24, 2024

@open-telemetry/rust-approvers please take a look

thanks @ashupednekar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested sig:rust
Projects
Status: No status
Development

No branches or pull requests

2 participants