mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
07c25584d3
commit
2bcf43b761
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue