From 8fc01ba2309510c781c92b9f98a1a0801dbce152 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 9 Dec 2021 18:05:22 -0800 Subject: [PATCH] [mdatagen] Fix gauge.NumberDataPoints field to use mapstructure The field was left not updated due to this PR https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/6460 not rebased before merge --- cmd/mdatagen/metricdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mdatagen/metricdata.go b/cmd/mdatagen/metricdata.go index 27c772c90c6b..c44cf4d70751 100644 --- a/cmd/mdatagen/metricdata.go +++ b/cmd/mdatagen/metricdata.go @@ -83,7 +83,7 @@ func (ndp NumberDataPoints) BasicType() string { } type gauge struct { - NumberDataPoints `yaml:",inline"` + NumberDataPoints `mapstructure:",squash"` } func (d gauge) Type() string {