diff --git a/internal/converter/internal/otelcolconvert/converter_attributesprocessor.go b/internal/converter/internal/otelcolconvert/converter_attributesprocessor.go index 3509b394d9..8f4c85bafc 100644 --- a/internal/converter/internal/otelcolconvert/converter_attributesprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_attributesprocessor.go @@ -56,6 +56,7 @@ func toAttributesProcessor(state *State, id component.InstanceID, cfg *attribute Metrics: ToTokenizedConsumers(nextMetrics), Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces)}, + DebugMetrics: common.DefaultValue[attributes.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_basicauthextension.go b/internal/converter/internal/otelcolconvert/converter_basicauthextension.go index dc40981a75..39cf086df1 100644 --- a/internal/converter/internal/otelcolconvert/converter_basicauthextension.go +++ b/internal/converter/internal/otelcolconvert/converter_basicauthextension.go @@ -42,7 +42,8 @@ func (basicAuthConverterConverter) ConvertAndAppend(state *State, id component.I func toBasicAuthExtension(cfg *basicauthextension.Config) *basic.Arguments { return &basic.Arguments{ - Username: cfg.ClientAuth.Username, - Password: alloytypes.Secret(string(cfg.ClientAuth.Password)), + Username: cfg.ClientAuth.Username, + Password: alloytypes.Secret(string(cfg.ClientAuth.Password)), + DebugMetrics: common.DefaultValue[basic.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_batchprocessor.go b/internal/converter/internal/otelcolconvert/converter_batchprocessor.go index 7a1cc9c7d0..4abd05a960 100644 --- a/internal/converter/internal/otelcolconvert/converter_batchprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_batchprocessor.go @@ -60,5 +60,6 @@ func toBatchProcessor(state *State, id component.InstanceID, cfg *batchprocessor Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[batch.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_bearertokenauthextension.go b/internal/converter/internal/otelcolconvert/converter_bearertokenauthextension.go index 2fe8c24a19..4b76b5fdea 100644 --- a/internal/converter/internal/otelcolconvert/converter_bearertokenauthextension.go +++ b/internal/converter/internal/otelcolconvert/converter_bearertokenauthextension.go @@ -61,8 +61,9 @@ func (bearerTokenAuthExtensionConverter) ConvertAndAppend(state *State, id compo func toBearerTokenAuthExtension(cfg *bearertokenauthextension.Config) *bearer.Arguments { return &bearer.Arguments{ - Scheme: cfg.Scheme, - Token: alloytypes.Secret(string(cfg.BearerToken)), + Scheme: cfg.Scheme, + Token: alloytypes.Secret(string(cfg.BearerToken)), + DebugMetrics: common.DefaultValue[bearer.Arguments]().DebugMetrics, } } @@ -78,6 +79,7 @@ func toBearerTokenAuthExtensionWithFilename(state *State, cfg *bearertokenauthex state.Body().AppendBlock(block) return &bearer.Arguments{ - Scheme: cfg.Scheme, + Scheme: cfg.Scheme, + DebugMetrics: common.DefaultValue[bearer.Arguments]().DebugMetrics, }, fmt.Sprintf("%s.content", StringifyBlock(block)) } diff --git a/internal/converter/internal/otelcolconvert/converter_filterprocessor.go b/internal/converter/internal/otelcolconvert/converter_filterprocessor.go index 65fb81f8ff..692792505b 100644 --- a/internal/converter/internal/otelcolconvert/converter_filterprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_filterprocessor.go @@ -67,5 +67,6 @@ func toFilterProcessor(state *State, id component.InstanceID, cfg *filterprocess Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[filter.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_headerssetterextension.go b/internal/converter/internal/otelcolconvert/converter_headerssetterextension.go index a542a35419..ac4254a39b 100644 --- a/internal/converter/internal/otelcolconvert/converter_headerssetterextension.go +++ b/internal/converter/internal/otelcolconvert/converter_headerssetterextension.go @@ -60,6 +60,7 @@ func toHeadersSetterExtension(cfg *headerssetterextension.Config) *headers.Argum } return &headers.Arguments{ - Headers: res, + Headers: res, + DebugMetrics: common.DefaultValue[headers.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_jaegerremotesamplingextension.go b/internal/converter/internal/otelcolconvert/converter_jaegerremotesamplingextension.go index 74d233cf1a..633cb413fd 100644 --- a/internal/converter/internal/otelcolconvert/converter_jaegerremotesamplingextension.go +++ b/internal/converter/internal/otelcolconvert/converter_jaegerremotesamplingextension.go @@ -69,5 +69,6 @@ func toJaegerRemoteSamplingExtension(cfg *jaegerremotesampling.Config) *jaeger_r File: cfg.Source.File, ReloadInterval: cfg.Source.ReloadInterval, }, + DebugMetrics: common.DefaultValue[jaeger_remote_sampling.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_k8sattributesprocessor.go b/internal/converter/internal/otelcolconvert/converter_k8sattributesprocessor.go index ca7eef4331..daf9be50ea 100644 --- a/internal/converter/internal/otelcolconvert/converter_k8sattributesprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_k8sattributesprocessor.go @@ -71,6 +71,8 @@ func toK8SAttributesProcessor(state *State, id component.InstanceID, cfg *k8satt Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + + DebugMetrics: common.DefaultValue[k8sattributes.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_memorylimiterprocessor.go b/internal/converter/internal/otelcolconvert/converter_memorylimiterprocessor.go index 36293f99cb..8557c46c00 100644 --- a/internal/converter/internal/otelcolconvert/converter_memorylimiterprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_memorylimiterprocessor.go @@ -61,5 +61,6 @@ func toMemoryLimiterProcessor(state *State, id component.InstanceID, cfg *memory Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[memorylimiter.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_oauth2clientauthextension.go b/internal/converter/internal/otelcolconvert/converter_oauth2clientauthextension.go index 6a7cd3a31e..0260a49d55 100644 --- a/internal/converter/internal/otelcolconvert/converter_oauth2clientauthextension.go +++ b/internal/converter/internal/otelcolconvert/converter_oauth2clientauthextension.go @@ -49,5 +49,6 @@ func toOAuth2ClientAuthExtension(cfg *oauth2clientauthextension.Config) *oauth2. Scopes: cfg.Scopes, TLSSetting: toTLSClientArguments(cfg.TLSSetting), Timeout: cfg.Timeout, + DebugMetrics: common.DefaultValue[oauth2.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_probabilisticsamplerprocessor.go b/internal/converter/internal/otelcolconvert/converter_probabilisticsamplerprocessor.go index d6088250e7..5062ff9140 100644 --- a/internal/converter/internal/otelcolconvert/converter_probabilisticsamplerprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_probabilisticsamplerprocessor.go @@ -58,5 +58,6 @@ func toProbabilisticSamplerProcessor(state *State, id component.InstanceID, cfg Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[probabilistic_sampler.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_servicegraphconnector.go b/internal/converter/internal/otelcolconvert/converter_servicegraphconnector.go index 1607474426..49712d33f0 100644 --- a/internal/converter/internal/otelcolconvert/converter_servicegraphconnector.go +++ b/internal/converter/internal/otelcolconvert/converter_servicegraphconnector.go @@ -64,5 +64,6 @@ func toServicegraphConnector(state *State, id component.InstanceID, cfg *service Output: &otelcol.ConsumerArguments{ Metrics: ToTokenizedConsumers(nextMetrics), }, + DebugMetrics: common.DefaultValue[servicegraph.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_sigv4authextension.go b/internal/converter/internal/otelcolconvert/converter_sigv4authextension.go index 6c5ebd1afa..d4801fb59b 100644 --- a/internal/converter/internal/otelcolconvert/converter_sigv4authextension.go +++ b/internal/converter/internal/otelcolconvert/converter_sigv4authextension.go @@ -51,5 +51,6 @@ func toSigV4AuthExtension(cfg *sigv4authextension.Config) *sigv4.Arguments { SessionName: cfg.AssumeRole.SessionName, STSRegion: cfg.AssumeRole.STSRegion, }, + DebugMetrics: common.DefaultValue[sigv4.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_spanmetricsconnector.go b/internal/converter/internal/otelcolconvert/converter_spanmetricsconnector.go index 7a1654caf7..e024075998 100644 --- a/internal/converter/internal/otelcolconvert/converter_spanmetricsconnector.go +++ b/internal/converter/internal/otelcolconvert/converter_spanmetricsconnector.go @@ -115,5 +115,7 @@ func toSpanmetricsConnector(state *State, id component.InstanceID, cfg *spanmetr Output: &otelcol.ConsumerArguments{ Metrics: ToTokenizedConsumers(nextMetrics), }, + + DebugMetrics: common.DefaultValue[spanmetrics.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_spanprocessor.go b/internal/converter/internal/otelcolconvert/converter_spanprocessor.go index 60eee2cf42..fde1b7c5a6 100644 --- a/internal/converter/internal/otelcolconvert/converter_spanprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_spanprocessor.go @@ -74,6 +74,7 @@ func toSpanProcessor(state *State, id component.InstanceID, cfg *spanprocessor.C Output: &otelcol.ConsumerArguments{ Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[span.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_tailsamplingprocessor.go b/internal/converter/internal/otelcolconvert/converter_tailsamplingprocessor.go index b57d441649..fac32df2d8 100644 --- a/internal/converter/internal/otelcolconvert/converter_tailsamplingprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_tailsamplingprocessor.go @@ -55,6 +55,7 @@ func toTailSamplingProcessor(state *State, id component.InstanceID, cfg *tailsam Output: &otelcol.ConsumerArguments{ Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[tail_sampling.Arguments]().DebugMetrics, } } diff --git a/internal/converter/internal/otelcolconvert/converter_transformprocessor.go b/internal/converter/internal/otelcolconvert/converter_transformprocessor.go index 79f880748e..db7dc1f48a 100644 --- a/internal/converter/internal/otelcolconvert/converter_transformprocessor.go +++ b/internal/converter/internal/otelcolconvert/converter_transformprocessor.go @@ -59,6 +59,7 @@ func toTransformProcessor(state *State, id component.InstanceID, cfg *transformp Logs: ToTokenizedConsumers(nextLogs), Traces: ToTokenizedConsumers(nextTraces), }, + DebugMetrics: common.DefaultValue[transform.Arguments]().DebugMetrics, } }