File tree Expand file tree Collapse file tree 7 files changed +13
-4
lines changed Expand file tree Collapse file tree 7 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 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
77import (
88 "context"
Original file line number Diff line number Diff 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.
649651func (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.
679683func (j * SimpleLogRecordProcessor ) UnmarshalJSON (b []byte ) error {
680684 var raw map [string ]any
681685 if err := json .Unmarshal (b , & raw ); err != nil {
Original file line number Diff line number Diff line change @@ -1378,6 +1378,7 @@ func TestUnmarshalCardinalityLimits(t *testing.T) {
13781378 })
13791379 }
13801380}
1381+
13811382func TestCreateHeadersConfig (t * testing.T ) {
13821383 tests := []struct {
13831384 name string
Original file line number Diff line number Diff 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.
258260func (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.
374378func (j * ExperimentalLanguageSpecificInstrumentation ) UnmarshalYAML (unmarshal func (any ) error ) error {
375379 var raw map [string ]any
376380 if err := unmarshal (& raw ); err != nil {
Original file line number Diff line number Diff line change 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
66import (
77 "context"
Original file line number Diff line number Diff line change 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
66import (
77 "context"
Original file line number Diff line number Diff line change 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
66import (
77 "context"
You can’t perform that action at this time.
0 commit comments