Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[chore] Remove omitempty tags on JobProgressMetrics and UnitMetrics (#2204)
Miccah9f6a47da3f13
diff --git a/pkg/sources/job_progress.go b/pkg/sources/job_progress.goindex 252bef1c5..eb7aae3fe 100644--- a/pkg/sources/job_progress.go+++ b/pkg/sources/job_progress.go@@ -128,9 +128,9 @@ type JobProgressMetrics struct {FinishedUnits uint64 `json:"finished_units,omitempty"`// Total number of chunks produced. This metric updates before the// chunk is sent on the output channel.- TotalChunks uint64 `json:"total_chunks,omitempty"`+ TotalChunks uint64 `json:"total_chunks"`// All errors encountered.- Errors []error `json:"errors,omitempty"`+ Errors []error `json:"errors"`// Set to true if the source supports enumeration and has finished// enumerating. If the source does not support enumeration, this field// is always false.diff --git a/pkg/sources/job_progress_hook.go b/pkg/sources/job_progress_hook.goindex c585ec943..b1eeec932 100644--- a/pkg/sources/job_progress_hook.go+++ b/pkg/sources/job_progress_hook.go@@ -174,11 +174,11 @@ type UnitMetrics struct {StartTime *time.Time `json:"start_time,omitempty"`EndTime *time.Time `json:"end_time,omitempty"`// Total number of chunks produced from this unit.- TotalChunks uint64 `json:"total_chunks,omitempty"`+ TotalChunks uint64 `json:"total_chunks"`// Total number of bytes produced from this unit.- TotalBytes uint64 `json:"total_bytes,omitempty"`+ TotalBytes uint64 `json:"total_bytes"`// All errors encountered by this unit.- Errors []error `json:"errors,omitempty"`+ Errors []error `json:"errors"`// Flag to mark that these metrics were intentionally evicted from// the cache.handled bool