Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api/helpers/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ func StartAndEndNewTimerSpan(ctx context.Context, tf *protos.TimerFiredEvent, cr
return nil
}

func StartAndEndNewPatchSpan(ctx context.Context, patchName string, createdTime time.Time) error {
attributes := []attribute.KeyValue{
{Key: "durabletask.patch_check", Value: attribute.StringValue(patchName)},
}
_, span := startNewSpan(ctx, "patch", patchName, "", attributes, trace.SpanKindInternal, createdTime)
span.End()
return nil
}

func startNewSpan(
ctx context.Context,
taskType string,
Expand Down
1 change: 1 addition & 0 deletions api/orchestration.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
RUNTIME_STATUS_TERMINATED OrchestrationStatus = protos.OrchestrationStatus_ORCHESTRATION_STATUS_TERMINATED
RUNTIME_STATUS_PENDING OrchestrationStatus = protos.OrchestrationStatus_ORCHESTRATION_STATUS_PENDING
RUNTIME_STATUS_SUSPENDED OrchestrationStatus = protos.OrchestrationStatus_ORCHESTRATION_STATUS_SUSPENDED
RUNTIME_STATUS_STALLED OrchestrationStatus = protos.OrchestrationStatus_ORCHESTRATION_STATUS_STALLED
)

type OrchestrationIdReusePolicy = protos.OrchestrationIdReusePolicy
Expand Down
Loading
Loading