Skip to content

Commit ad22886

Browse files
committed
fix: lint issues
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
1 parent 4452b3d commit ad22886

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apis/v1beta1/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,3 @@ type Service struct {
119119
// +kubebuilder:pruning:PreserveUnknownFields
120120
Pipelines map[string]*Pipeline `json:"pipelines" yaml:"pipelines"`
121121
}
122-

internal/otelconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (in *MetricsConfig) DeepCopy() *MetricsConfig {
5858

5959
// Telemetry is an intermediary type that allows for easy access to the collector's telemetry settings.
6060
type Telemetry struct {
61-
Metrics MetricsConfig `json:"metrics,omitempty" yaml:"metrics,omitempty"`
61+
Metrics MetricsConfig `json:"metrics,omitzero" yaml:"metrics,omitempty"`
6262

6363
// Resource specifies user-defined attributes to include with all emitted telemetry.
6464
// Note that some attributes are added automatically (e.g. service.version) even

0 commit comments

Comments
 (0)