File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
opentelemetry-sdk/src/trace Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616/// The `TracerProvider` is designed to be lightweight and clonable. Cloning a `TracerProvider`
1717/// creates a new reference to the same provider, not a new instance. Dropping the last reference
1818/// to the `TracerProvider` will automatically trigger its shutdown. During shutdown, the provider
19- /// will flush all remaining spans, ensuring they are exported to the configured exporters.
19+ /// will flush all remaining spans, ensuring they are passed to the configured exporters.
2020/// Users can also manually trigger shutdown using the [`shutdown`](TracerProvider::shutdown)
2121/// method, which will ensure the same behavior.
2222///
2727/// ## Span Processing and Force Flush
2828///
2929/// The `TracerProvider` manages the lifecycle of span processors, which are responsible for
30- /// collecting, processing, and exporting spans. To ensure all spans are processed before shutdown,
31- /// users can call the [`force_flush`](TracerProvider::force_flush) method at any time to trigger
32- /// an immediate flush of all pending spans to the exporters.
30+ /// collecting, processing, and exporting spans. The [`force_flush`](TracerProvider::force_flush) method
31+ /// invoked at any time will trigger an immediate flush of all pending spans (if any) to the exporters.
32+ /// This will block the user thread till all the spans are passed to exporters.
3333///
3434/// # Examples
3535///
You can’t perform that action at this time.
0 commit comments