Open joonnna opened 3 months ago
I'd recommend against using simple span processor in async runtime as it's blocking and may prevent your runtime from moving forward
I see, I'm trying to export spans of a program that immediately exits after doing some work and saw the synchronous exporter as the natural solution. Manually flushing all spans would also solve my case, is there any way to do this?
mm.. The upcoming release should fix the issue : https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-sdk/CHANGELOG.md#vnext
We previously spun up a thread, even for SimpleSpanProcessor, and that is replaced now (in next release).
I'm trying to export spans of a program that immediately exits after doing some work
Based on this description, SimpleSpanProcessor is your best bet.
@TommyCpp What are the potential issues to be aware of when using this?
What happened?
The following example results in a panic, but works fine with the batch exporter. There clearly exists a tokio runtime, any ideas?
Cargo.toml
API Version
0.15
SDK Version
0.22.0
What Exporters are you seeing the problem on?
OTLP
Relevant log output