-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PreSampledTrace Failure #1340
Comments
Are you using the latest version of the sdk? |
Could be version mismatch. You should use 0.20 of Note that since |
So as mentioned I have a PR with an example. The #1339 does work, but I had to use |
@hdost which constraints? they should both be referencing the same type https://docs.rs/opentelemetry/0.21.0/opentelemetry/trace/trait.TracerProvider.html |
The tooling requires the PreSampledTracer trait to be implemented, but the implementation is only done for NoopTracer and for the SdkTracer (which with our recent rename will also fail). I believe we may need to have tracing-opentelemetry implementation be a blanket for any Tracer and that should work. |
Sorry I missed this comment. |
@hdost What ended up being the solution for this? I'm encountering the same issue. |
I had mismatched versions. |
Ran into an interesting edge case when trying to put together a sample for open-telemetry/opentelemetry-rust-contrib#137
It seems like they're using OpenTelemetryOTLP exporting. However that's not the main topic here. We have a weird interaction that seems to be happening at it relates to a special trait that's being run. I'm not 100 sure it requires an API change, but it could.
The code is included here #1339
Not sure if there's any API changed required here, instead it might actually require filing something on the
tracing-opentelemetry
crate. This could however require some sort of API change.@jtescher is this something around a generic implementation?
The text was updated successfully, but these errors were encountered: