Register a configure hook.
register_configure_hook(
context_var: ContextVar[Any | None],
inheritable: bool,
handle_class: type[BaseCallbackHandler] | None = None,
env_var: str | None = None
) -> None| Name | Type | Description |
|---|---|---|
context_var* | ContextVar[Any | None] | The context variable. |
inheritable* | bool | Whether the context variable is inheritable. |
handle_class | type[BaseCallbackHandler] | None | Default: NoneThe callback handler class. |
env_var | str | None | Default: NoneThe environment variable. |