From 2bcf43b761f1c44e0ab740f62dcd9b6c9331834d Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 23 Jan 2025 20:01:41 +0100 Subject: [PATCH] - --- cmd/root/user_agent_command_exec_id.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/root/user_agent_command_exec_id.go b/cmd/root/user_agent_command_exec_id.go index 93011ecf0..3bf32b703 100644 --- a/cmd/root/user_agent_command_exec_id.go +++ b/cmd/root/user_agent_command_exec_id.go @@ -7,14 +7,8 @@ import ( "github.com/google/uuid" ) -var cmdExecId = uuid.New().String() - -func CmdExecId() string { - return cmdExecId -} - func withCommandExecIdInUserAgent(ctx context.Context) context.Context { // A UUID that will allow us to correlate multiple API requests made by // the same CLI invocation. - return useragent.InContext(ctx, "cmd-exec-id", cmdExecId) + return useragent.InContext(ctx, "cmd-exec-id", uuid.New().String()) }