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

Honeycomb is not receiving events #21

Open
Pet3ris opened this issue Jan 3, 2023 · 2 comments
Open

Honeycomb is not receiving events #21

Pet3ris opened this issue Jan 3, 2023 · 2 comments

Comments

@Pet3ris
Copy link

Pet3ris commented Jan 3, 2023

I'm setting the subscriber configuration in the most basic way:

// Use honeycomb
let honeycomb_api_key = dotenv::var("HONEYCOMB_API_KEY").unwrap();
let honeycomb_config = libhoney::Config {
    options: libhoney::client::Options {
        api_key: honeycomb_api_key,
        dataset: "my-dataset".to_string(),
        ..libhoney::client::Options::default()
    },
    transmission_options: libhoney::transmission::Options::default(),
};
let telemetry_layer = tracing_honeycomb::new_honeycomb_telemetry_layer("my-service", honeycomb_config);
let honey_subscriber = tracing_subscriber::Registry::default()
    .with(tracing::level_filters::LevelFilter::INFO)
    .with(tracing_subscriber::fmt::Layer::default())
    .with(telemetry_layer);
tracing::subscriber::set_global_default(honey_subscriber).expect("setting global default failed");

I can see events logged in stdout but nothing is received on the Honeycomb layer. I've checked that the API key is the correct one. Any way to see what's going on?

@Pet3ris
Copy link
Author

Pet3ris commented Jan 4, 2023

As a workaround, there is now a good implementation here: https://github.com/Dhghomon/rust_opentelemetry_honeycomb.

@fayalalebrun
Copy link

You need to use register_dist_tracing_root. Anyways, I think honeycomb is moving towards opentelemetry.

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

No branches or pull requests

2 participants