SimpleSpanProcessor.forceFlush doesn't wait for pending exports #1841
Labels
priority:p4
Bugs and spec inconsistencies which do not fall into a higher prioritization
spec-noncompliant
An existing feature incorrectly or incompletely implements the OTel spec. May or may not be a bug
stale
While examining aws-observability/aws-otel-community#17, I noticed that
SimpleSpanProcessor.forceFlush
doesn't allow blocking on pending exports.opentelemetry-js/packages/opentelemetry-tracing/src/export/SimpleSpanProcessor.ts
Line 37 in 392c43f
Presumably,
onEnd
needs to store thePromise
for the call toexport
in some Set-like object which is removed from when the export completes, so thatforceFlush
can block on the promises in that set.The text was updated successfully, but these errors were encountered: