Skip to content

Commit

Permalink
fix: generate debug exporter only if needed
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
  • Loading branch information
csatib02 committed Dec 11, 2024
1 parent 41fad59 commit 81564d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/controller/telemetry/otel_conf_gen/otel_conf_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 81564d6

Please sign in to comment.