From f774a149b0e5120719aad579a54af0273d89662d Mon Sep 17 00:00:00 2001 From: Cluas Date: Mon, 21 Oct 2024 22:37:37 +0800 Subject: [PATCH] feat: need cfg.ClusteredClickhouse --- exporter/qrynexporter/traces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/qrynexporter/traces.go b/exporter/qrynexporter/traces.go index fd56330..dfe6d7e 100644 --- a/exporter/qrynexporter/traces.go +++ b/exporter/qrynexporter/traces.go @@ -71,7 +71,7 @@ func newTracesExporter(logger *zap.Logger, cfg *Config, set *exporter.Settings) meter: set.MeterProvider.Meter(typeStr), db: db, cluster: cfg.ClusteredClickhouse, - clientSide: cfg.ClientSideTraceProcessing, + clientSide: cfg.ClusteredClickhouse && cfg.ClientSideTraceProcessing, } if err := initMetrics(exp.meter); err != nil { exp.logger.Error(fmt.Sprintf("failed to init metrics: %s", err.Error()))