fix: project telemetry once for all instances (#6323)

This commit is contained in:
Elio Bischof 2023-08-04 11:05:20 +02:00 committed by GitHub
parent ef012d0081
commit d33a4fbb2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ package handlers
import (
"context"
"fmt"
"math"
"net/http"
"time"
@ -57,6 +58,7 @@ func NewTelemetryPusher(
handlerCfg.ProjectionName = TelemetryProjectionTable
handlerCfg.Reducers = p.reducers()
p.cfg = telemetryCfg
handlerCfg.ConcurrentInstances = math.MaxInt
p.StatementHandler = crdb.NewStatementHandler(ctx, handlerCfg)
p.commands = commands
p.queries = queries