From 9302520ce5f7806bc5e15485951b5445c3f85e06 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 31 Oct 2024 11:17:20 +0100 Subject: [PATCH] - --- cmd/root/user_agent_command.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cmd/root/user_agent_command.go b/cmd/root/user_agent_command.go index 574f6bb348..306f2d7bfa 100644 --- a/cmd/root/user_agent_command.go +++ b/cmd/root/user_agent_command.go @@ -5,7 +5,6 @@ import ( "strings" "github.com/databricks/databricks-sdk-go/useragent" - "github.com/google/uuid" "github.com/spf13/cobra" ) @@ -34,11 +33,5 @@ func commandString(cmd *cobra.Command) string { } func withCommandInUserAgent(ctx context.Context, cmd *cobra.Command) context.Context { - // A UUID that'll will allow use to correlate multiple API requests made by - // the same command invocation. - // When we add telemetry to the CLI, this trace ID will allow allow us to - // correlate logs in HTTP access logs with logs in Frontend logs. - newCtx := useragent.InContext(ctx, "command-trace-id", uuid.New().String()) - - return useragent.InContext(newCtx, "cmd", commandString(cmd)) + return useragent.InContext(ctx, "cmd", commandString(cmd)) }