mirror of https://github.com/databricks/cli.git
f3bf33da27
## Changes This PR adds the `cmd-exec-id` field to the user agent. This allows us to correlate multiple HTTP requests made from the CLI. ### Why Not Use HTTP traceparent? We considered using the traceparent header in HTTP as an alternative, but it's not a good fit for our use case. Here's why: 1. Purpose of traceparent: It's designed to trace a single HTTP request across a distributed system as it moves through subsystems and proxies. 2. Our requirement: We need to trace multiple HTTP requests made during a single command execution in the CLI. For more details about how traceparent itself works and how it's used in the Go SDK, see https://github.com/databricks/databricks-sdk-go/pull/914. ## Tests Unit test |
||
---|---|---|
.. | ||
args.go | ||
auth.go | ||
auth_options.go | ||
auth_options_test.go | ||
auth_test.go | ||
bundle.go | ||
bundle_test.go | ||
io.go | ||
logger.go | ||
progress_logger.go | ||
progress_logger_test.go | ||
root.go | ||
silent_err.go | ||
user_agent.go | ||
user_agent_command.go | ||
user_agent_command_exec_id.go | ||
user_agent_command_exec_id_test.go | ||
user_agent_command_test.go | ||
user_agent_upstream.go | ||
user_agent_upstream_test.go |