Skip to main content
You are reading the docs of Galtea 5.10. Read this page in the latest version.

Returns

This method returns None.

Example

Parameters

object
required
The context token returned by set_context().
bool
If True (default), export any pending spans associated with the current trace to the telemetry exporter before detaching the context.
Always use clear_context() in a finally block to ensure proper cleanup, even if an exception occurs.