Signature
Parameters
None.Example
Behavior
When called,flush():
- Takes all spans from the internal queue
- Groups them by trace ID
- Sends them to the collector immediately
- Does not wait for the batch size or flush interval
Use Cases
Debugging: Force traces to appear in your dashboard immediately.Thread Safety
flush() is thread-safe and can be called from any thread.
See Also
- shutdown() - Flush and cleanup
- init() - Configure flush interval

