rust-telemetry-workshop icon indicating copy to clipboard operation
rust-telemetry-workshop copied to clipboard

opentelemetry module doesn't seem to work

Open metajack opened this issue 1 year ago • 5 comments

I have set my API key in the environment, but no data seems to show up at Honeycomb.io. I also tried changing the endpoint to remove the path components, since most of the Honeycomb examples don't have a path, but that didn't seem to help.

The failure test passes, which I assume means it didn't fail trying to send the message to honeycomb.

metajack avatar Oct 09 '24 01:10 metajack

Can you share your repository?

LukeMathWalker avatar Oct 09 '24 07:10 LukeMathWalker

Sure, it is here: https://github.com/metajack/rust-telemetry-workshop/tree/metajack

metajack avatar Oct 10 '24 02:10 metajack

I had the same issue, and I could send traces to Honeycomb by downgrading the open telemetry crates. As far as I investigated, it seemed that the current crate versions in the main branch couldn't connect to Honeycomb or even didn't try to connect. I haven't found the root cause of this issue, but you can send traces by downgrading crates. https://github.com/mainmatter/rust-telemetry-workshop/compare/main...tofu511:rust-telemetry-workshop:resolve-otep-connection-issue

tofu511 avatar Oct 13 '24 11:10 tofu511

Hi @metajack @LukeMathWalker, I found possible solutions for this issue. Either downgrading Opentelemetry's crate or changing the scheduled delay config would work.

I created a PR to change the scheduled delay config, not to downgrade the current otel's version. Would you mind reviewing it when you have a chance?

Thank you!

tofu511 avatar Oct 28 '24 13:10 tofu511

Having the same issue here. @tofu511 your PR did the trick for me and now I can see the traces in Honeycomb.

imminent-despair avatar Jun 24 '25 10:06 imminent-despair