Exporter shutdown method does not flush spans when wrapped with SimpleSpanProcessor #5602
Labels
bug
Something isn't working
priority:p4
Bugs and spec inconsistencies which do not fall into a higher prioritization
What happened?
Steps to Reproduce
When I end a span, then next call
shutdown
, the ended span is not flushed. If I wait for the next event loop tick, the span is flushed as-expected. See this example in the repo that demonstrates the problem and an example work-around.Providing
0
tosetTimeout
also resolved the issue for me.Additional Details
See this other comment where the issue is shared.
Ideally, updating the example to below would work without the event loop wait.
OpenTelemetry Setup Code
package.json
Relevant log output
Operating System and Version
No response
Runtime and Version
No response
The text was updated successfully, but these errors were encountered: