From 0253f9fca33cb3278326824e357fc1aecbd6d4a9 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Fri, 20 Sep 2024 11:50:12 -0600 Subject: [PATCH] chore(tempodb): Adding max size for received messages to 10MB (#4026) --- agent/tracedb/tempodb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agent/tracedb/tempodb.go b/agent/tracedb/tempodb.go index e57e147bdc..defdb892bd 100644 --- a/agent/tracedb/tempodb.go +++ b/agent/tracedb/tempodb.go @@ -90,9 +90,12 @@ func grpcGetTraceByID(ctx context.Context, traceID string, conn *grpc.ClientConn return traces.Trace{}, err } - resp, err := query.FindTraceByID(ctx, &tempopb.TraceByIDRequest{ + // This is a temporary solution while we figure out how to paginate the traces from Tempo + maxSizeOption := grpc.MaxCallRecvMsgSize(1024 * 1024 * 10) // 10MB + + resp, err := query.FindTraceByID(context.Background(), &tempopb.TraceByIDRequest{ TraceID: []byte(trID[:]), - }) + }, maxSizeOption) if err != nil { return traces.Trace{}, handleError(err) }