Skip to content

Commit a24a7f5

Browse files
Remove omitempty tag for exit code and execution time in telemetry (#2433)
1 parent 6ae353d commit a24a7f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/telemetry/protos/databricks_cli_log.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ type ExecutionContext struct {
2424
FromWebTerminal bool `json:"from_web_terminal,omitempty"`
2525

2626
// Time taken for the CLI command to execute.
27-
ExecutionTimeMs int64 `json:"execution_time_ms,omitempty"`
27+
// We want to serialize the zero value as well so the omitempty tag is not set.
28+
ExecutionTimeMs int64 `json:"execution_time_ms"`
2829

2930
// Exit code of the CLI command.
30-
ExitCode int64 `json:"exit_code,omitempty"`
31+
// We want to serialize the zero value as well so the omitempty tag is not set.
32+
ExitCode int64 `json:"exit_code"`
3133
}
3234

3335
type CliTestEvent struct {

0 commit comments

Comments
 (0)