Skip to content

Commit 494b76e

Browse files
committed
lint
Signed-off-by: alex boten <[email protected]>
1 parent f9e09e2 commit 494b76e

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

otelconf/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
// Package otelconf provides an OpenTelemetry declarative configuration SDK.
5-
package otelconf // import "go.opentelemetry.io/contrib/otelconf/v1.0.0-rc.1"
5+
package otelconf // import "go.opentelemetry.io/contrib/otelconf"
66

77
import (
88
"context"

otelconf/config_json.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,8 @@ func (j *CardinalityLimits) UnmarshalJSON(value []byte) error {
646646
*j = CardinalityLimits(plain)
647647
return nil
648648
}
649+
650+
// UnmarshalJSON implements json.Unmarshaler.
649651
func (j *PullMetricReader) UnmarshalJSON(b []byte) error {
650652
var raw map[string]any
651653
if err := json.Unmarshal(b, &raw); err != nil {
@@ -676,6 +678,8 @@ func (j *SpanLimits) UnmarshalJSON(value []byte) error {
676678
*j = SpanLimits(plain)
677679
return nil
678680
}
681+
682+
// UnmarshalJSON implements json.Unmarshaler.
679683
func (j *SimpleLogRecordProcessor) UnmarshalJSON(b []byte) error {
680684
var raw map[string]any
681685
if err := json.Unmarshal(b, &raw); err != nil {

otelconf/config_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,7 @@ func TestUnmarshalCardinalityLimits(t *testing.T) {
13781378
})
13791379
}
13801380
}
1381+
13811382
func TestCreateHeadersConfig(t *testing.T) {
13821383
tests := []struct {
13831384
name string

otelconf/config_yaml.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ func (j *BatchLogRecordProcessor) UnmarshalYAML(node *yaml.Node) error {
255255
*j = BatchLogRecordProcessor(plain)
256256
return nil
257257
}
258+
259+
// UnmarshalYAML implements yaml.Unmarshaler.
258260
func (j *NameStringValuePair) UnmarshalYAML(node *yaml.Node) error {
259261
var raw map[string]any
260262
if err := node.Decode(&raw); err != nil {
@@ -371,6 +373,8 @@ func (j *SpanLimits) UnmarshalYAML(node *yaml.Node) error {
371373
*j = SpanLimits(plain)
372374
return nil
373375
}
376+
377+
// UnmarshalYAML implements yaml.Unmarshaler.
374378
func (j *ExperimentalLanguageSpecificInstrumentation) UnmarshalYAML(unmarshal func(any) error) error {
375379
var raw map[string]any
376380
if err := unmarshal(&raw); err != nil {

otelconf/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
package otelconf // import "go.opentelemetry.io/contrib/otelconf/v1.0.0-rc.1"
4+
package otelconf // import "go.opentelemetry.io/contrib/otelconf"
55

66
import (
77
"context"

otelconf/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
package otelconf // import "go.opentelemetry.io/contrib/otelconf/v1.0.0-rc.1"
4+
package otelconf // import "go.opentelemetry.io/contrib/otelconf"
55

66
import (
77
"context"

otelconf/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
package otelconf // import "go.opentelemetry.io/contrib/otelconf/v1.0.0-rc.1"
4+
package otelconf // import "go.opentelemetry.io/contrib/otelconf"
55

66
import (
77
"context"

0 commit comments

Comments
 (0)