class documentation
class TemporalIdGenerator(IdGenerator): (source)
Constructor: TemporalIdGenerator(id_generator)
OpenTelemetry ID generator that uses Temporal's deterministic random generator.
Warning
This class is experimental and may change in future versions. Use with caution in production environments.
This generator uses Temporal's workflow-safe random number generator when inside a workflow execution, ensuring deterministic span and trace IDs across workflow replays. Falls back to standard random generation outside of workflows.
| Method | __init__ |
Initialize a TemporalIdGenerator. |
| Method | generate |
Generate a span ID using Temporal's deterministic random when in workflow. |
| Method | generate |
Generate a trace ID using Temporal's deterministic random when in workflow. |
| Instance Variable | _id |
Undocumented |