apple/swift-distributed-tracing

Why do we enforce a `forceFlush` method on Tracer?

fabianfett opened this issue · 1 comments

Currently we enforce a forceFlush method on Tracer? The TracingSystem never calls this? Why do we enforce it then?

ktoso commented

In order to allow otel implementations to do this: https://opentelemetry.io/docs/reference/specification/trace/sdk/#forceflush

You may want to force flush on a tracer before you shutdown your process; it matters for graceful shutdown scenarios. We'll be keeping it.