diff --git a/internal/controller/telemetry/otel_conf_gen/otel_conf_gen.go b/internal/controller/telemetry/otel_conf_gen/otel_conf_gen.go index 342ff1a..033fe4e 100644 --- a/internal/controller/telemetry/otel_conf_gen/otel_conf_gen.go +++ b/internal/controller/telemetry/otel_conf_gen/otel_conf_gen.go @@ -69,7 +69,9 @@ func (cfgInput *OtelColConfigInput) generateExporters(ctx context.Context) map[s maps.Copy(exporters, exporter.GenerateOTLPGRPCExporters(ctx, cfgInput.ResourceRelations)) maps.Copy(exporters, exporter.GenerateOTLPHTTPExporters(ctx, cfgInput.ResourceRelations)) maps.Copy(exporters, exporter.GenerateFluentforwardExporters(ctx, cfgInput.ResourceRelations)) - maps.Copy(exporters, exporter.GenerateDebugExporters()) + if cfgInput.Debug { + maps.Copy(exporters, exporter.GenerateDebugExporters()) + } return exporters }