Skip to content

Commit 2279f3a

Browse files
committed
update doc
1 parent 0d7d1ab commit 2279f3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opentelemetry-sdk/src/trace/provider.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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
///
@@ -27,9 +27,9 @@
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
///

0 commit comments

Comments
 (0)