pub fn create_operation_span(
operation_type: &str,
op_id: &OperationIdentifier,
durable_execution_arn: &str,
) -> SpanExpand description
Creates a tracing span for a durable operation.
This function creates a structured tracing span that includes all relevant context for observability and debugging. The span can be used to trace execution flow and correlate logs across operations.
§Arguments
operation_type- The type of operation (e.g., “step”, “wait”, “callback”, “invoke”, “map”, “parallel”)op_id- The operation identifier containing operation_id, parent_id, and namedurable_execution_arn- The ARN of the durable execution
§Returns
A tracing::Span that can be entered during operation execution.
§Example
ⓘ
let span = create_operation_span("step", &op_id, state.durable_execution_arn());
let _guard = span.enter();
// ... operation execution ...