From 90ec04f18595590d3aed68e6a7b2e7544ccb199e Mon Sep 17 00:00:00 2001 From: akvlad Date: Thu, 24 Oct 2024 14:31:40 +0300 Subject: [PATCH] debug clusterKey; pyroscope config --- exporter/qrynexporter/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/qrynexporter/logs.go b/exporter/qrynexporter/logs.go index 7791965..8a9361c 100644 --- a/exporter/qrynexporter/logs.go +++ b/exporter/qrynexporter/logs.go @@ -452,7 +452,7 @@ func (e *logsExporter) pushLogsData(ctx context.Context, ld plog.Logs) error { } func batchSamplesAndTimeSeries(ctx context.Context, db clickhouse.Conn, samples []Sample, timeSeries []TimeSerie) error { - isCluster := ctx.Value("cluster").(bool) + isCluster := ctx.Value(clusterKey).(bool) samplesBatch, err := db.PrepareBatch(ctx, samplesSQL(isCluster)) if err != nil { return err