From 450d5f8dbdcdce887393331d881484d489a5a400 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Fri, 10 Dec 2021 09:55:09 -0800 Subject: [PATCH] [mdatagen] Fix gauge.NumberDataPoints field to use mapstructure (#6683) 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 {