diff --git a/cmd/root/root.go b/cmd/root/root.go index 703bd80e7..7059586f3 100644 --- a/cmd/root/root.go +++ b/cmd/root/root.go @@ -75,8 +75,8 @@ func New(ctx context.Context) *cobra.Command { // Configure our user agent with the command that's about to be executed. ctx = withCommandInUserAgent(ctx, cmd) - ctx = withUpstreamInUserAgent(ctx) ctx = withCommandExecIdInUserAgent(ctx) + ctx = withUpstreamInUserAgent(ctx) cmd.SetContext(ctx) return nil } diff --git a/cmd/root/user_agent_command_exec_id.go b/cmd/root/user_agent_command_exec_id.go index 0a2c7cfd0..3bf32b703 100644 --- a/cmd/root/user_agent_command_exec_id.go +++ b/cmd/root/user_agent_command_exec_id.go @@ -8,9 +8,7 @@ import ( ) func withCommandExecIdInUserAgent(ctx context.Context) 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 exec ID will allow allow us to - // correlate logs in HTTP access logs with logs in Frontend logs. + // A UUID that will allow us to correlate multiple API requests made by + // the same CLI invocation. return useragent.InContext(ctx, "cmd-exec-id", uuid.New().String()) }