This commit is contained in:
Shreyas Goenka 2025-03-06 12:44:46 +01:00
parent 3fe457257b
commit 6e8184ea35
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 3 additions and 2 deletions

View File

@ -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 {