module documentation

Plugin setting a Temporal client's identity from Google Cloud Run instance metadata.

Function _default_identity Recreate the identity ConnectConfig auto-generates when none is given.
def _default_identity() -> str: (source) ΒΆ

Recreate the identity ConnectConfig auto-generates when none is given.

temporalio.service.ConnectConfig fills an unset identity with <pid>@<hostname> in __post_init__, so by the time this plugin runs the identity is never literally empty. Matching that value lets the plugin tell an auto-generated identity (safe to replace) from one the caller chose (kept).