From 6e8184ea359c226bdbce57ad97941eba79f7b827 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 6 Mar 2025 12:44:46 +0100 Subject: [PATCH] - --- libs/command/context.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/command/context.go b/libs/command/context.go index 5ed919d99..67222e52a 100644 --- a/libs/command/context.go +++ b/libs/command/context.go @@ -33,8 +33,9 @@ func MockExecId(ctx context.Context, v string) context.Context { return context.WithValue(ctx, execIDKey, v) } -// A UUID that will allow us to correlate multiple API requests made by -// the same CLI invocation. +// ExecId returns a UUID value that is guaranteed to be the same throughout +// the lifetime of the command execution, and unique for each invocation of the +// CLI. func ExecId(ctx context.Context) string { v := ctx.Value(execIDKey) if v == nil {