-
Notifications
You must be signed in to change notification settings - Fork 452
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
[Bug]: OTLP logs only output when batch processor fails #1962
Comments
Can you try and do an explicit shutdown of the provider? |
Unfortunately that did not help. But it did push me a bit further in debugging. I pulled your linked example locally (and commented out all the metrics/logs bits since Jaeger doesn't seem to support those), and I was able to consistently get the OTel created spans showing up in Jaeger (the ones inside I then added the following lines to the main of that example with the intention of also exporting traces from the let tracer = tracer_provider.tracer("MY_TEST_TRACER");
let telemetry_layer = tracing_opentelemetry::layer().with_tracer(tracer);
...
tracing_subscriber::registry()
.with(filter)
.with(telemetry_layer) //add new layer to registry
.init(); Adding the |
Thanks for the additional details. Most likely its version conflict - we see such issues reported often in this repo, though we don't own Please let us know if you are able to fix the issue with latest version of all crates. |
What happened?
I have the following minimal example using the otel crates to observe the aws-sdk-rust's existing tracing spans: https://github.com/landonxjames/aws-rust-sdk-otel-test
The setup for my tracing subscriber can be found here and the full list of dependencies here.
I am running a Jaeger instance to collect the metrics with the following command:
I am then running the linked program with
cargo run --release
.The output of my program looks like:
Note that the seeming error lines at the end are not always present. Strangely metrics only appear in my Jaeger instance when those error logs are present. When the error logs are not present nothing shows up in Jaeger at all. The error is present (and thus the logs show up) in about ~25% of my runs.
API Version
0.24.0
SDK Version
0.24.1
What Exporter(s) are you seeing the problem on?
OTLP
Relevant log output
The text was updated successfully, but these errors were encountered: