From 94d61c7b2b1d618216f2be92795c4eec50733248 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Wed, 10 Dec 2025 16:53:48 +0800 Subject: [PATCH] fix(logging): update response aggregation logic to include all attempts --- internal/runtime/executor/logging_helpers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/runtime/executor/logging_helpers.go b/internal/runtime/executor/logging_helpers.go index 7798b96b..26931f53 100644 --- a/internal/runtime/executor/logging_helpers.go +++ b/internal/runtime/executor/logging_helpers.go @@ -157,7 +157,7 @@ func appendAPIResponseChunk(ctx context.Context, cfg *config.Config, chunk []byt if ginCtx == nil { return } - _, attempt := ensureAttempt(ginCtx) + attempts, attempt := ensureAttempt(ginCtx) ensureResponseIntro(attempt) if !attempt.headersWritten { @@ -175,6 +175,8 @@ func appendAPIResponseChunk(ctx context.Context, cfg *config.Config, chunk []byt } attempt.response.WriteString(string(data)) attempt.bodyHasContent = true + + updateAggregatedResponse(ginCtx, attempts) } func ginContextFrom(ctx context.Context) *gin.Context {