mirror of https://github.com/databricks/cli.git
Remove omitempty tag for exit code and execution time in telemetry (#2433)
This commit is contained in:
parent
6ae353d84b
commit
a24a7f5738
|
@ -24,10 +24,12 @@ type ExecutionContext struct {
|
||||||
FromWebTerminal bool `json:"from_web_terminal,omitempty"`
|
FromWebTerminal bool `json:"from_web_terminal,omitempty"`
|
||||||
|
|
||||||
// Time taken for the CLI command to execute.
|
// Time taken for the CLI command to execute.
|
||||||
ExecutionTimeMs int64 `json:"execution_time_ms,omitempty"`
|
// We want to serialize the zero value as well so the omitempty tag is not set.
|
||||||
|
ExecutionTimeMs int64 `json:"execution_time_ms"`
|
||||||
|
|
||||||
// Exit code of the CLI command.
|
// Exit code of the CLI command.
|
||||||
ExitCode int64 `json:"exit_code,omitempty"`
|
// We want to serialize the zero value as well so the omitempty tag is not set.
|
||||||
|
ExitCode int64 `json:"exit_code"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CliTestEvent struct {
|
type CliTestEvent struct {
|
||||||
|
|
Loading…
Reference in New Issue