-
Notifications
You must be signed in to change notification settings - Fork 41
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
Datadog exporter does not work with async http client #7
Comments
It may not be a problem with datadog exporter. Could you share a more detailed example of how you configure the tracer provider? Or maybe try using some other exporters and see if it works. It may help us narrow down the cause. Thanks in advance. |
|
It does work fine with blocking reqwest http client. but emit error sometimes.
|
If I unwrap error. I got this error from reqwest
|
opentelemetry-jaeger works fine. |
It feels like a communication problem with the datadog collector. I noticed you are sending spans to |
Thats not a communication problem. that is expected. surely its datadog exporter bug. The exporter does not work with ASYNC http client. it works fine with BLOCKING REQWEST http client. which I already notice. |
Thanks for the bug report. I did try to reproduce this bug locally. Here is my current setup. Here is my approach: You mentioned the default reqwest async client is not working so I enabled the I think I am missing something here, could you take a look and see if there is anything that need to change in my example? |
fwiw, I ran into this exact same problem last week. |
|
I came to the realization that when using I'm not sure if this will help your case, but I can at least confirm this batch + reqwest-client "works" but is not doing everything I'd expect. |
And |
Previously the tracing service name was defaulted to rust.dora which prevented some functionalities of Jaeger tracing. There were also issues with pushing traces as batch as see here: https://github.com/open-telemetry/opentelemetry-rust/issues/674
I'm getting |
Seeing these errors as well. Any known workarounds? |
Emm does this impact your spans collections? Since it doesn't seem to impact the span collections it has been a low-priority fix. |
I see the same issue I think it is impacting to the spans collection. I see data been fed correctly on our staging env but not prod env. I think this could be due to we have lot more data in prod and therefore it is trying to send lot more data in a single batch and hitting some limit and failed. I tried |
Is it possible this is because the Datadog Exporter doesn't attempt to group spans in batches? It could be spending over thousands of spans at once. I saw issues like this when I was using Jaeger on OSX until I set Would it make sense to start investigating around this? |
Here's a snapshot of what's happening: https://www.loom.com/share/3dfe4c652cc14633953d82cffa146dae It looks to me like the datadog agent is accepting the trace batch and closing the connection, but for some reason the client is considering the conn prematurely closed. |
I can confirm that it works with |
This seems related. Is it so? https://github.com/will-bank/datadog-tracing/blob/30cdfba8d00caa04f6ac8e304f76403a5eb97129/src/tracer.rs#L29 |
Default and custom client both does not work. same error message occurs.
The text was updated successfully, but these errors were encountered: