-
Notifications
You must be signed in to change notification settings - Fork 40
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 tracer client initialization instructions are incorrect #14
Comments
There may be some documentation improvements that would help here as well, but have you tried adding one of the related features to your Cargo.toml -- e.g., |
I wasn't able to get I ended up using the generalized OTEL solution instead of this datadog package and that was considerably more straight forward |
Yes I agree, I've enabled the
but then when I make the tracer like so
I get
A complete working example with a toml file would be much appreciated |
Got it! Turns out we should use the
|
The instructions do not demonstrate
with_http_client
, which is required in order to initialize the pipeline.This fails:
with
because this is the only place where a http client is intitialized: https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-datadog/src/exporter/mod.rs#L344
The "Bring your own http client" appears to be the only version that could work, but it describes how to define the http client but not how to bind it to the tracer.
The instructions should also have something like:
The text was updated successfully, but these errors were encountered: