fix: disable recordInputs to prevent Langfuse media upload timeout

When images are included in chat messages, the AI SDK telemetry with
recordInputs: true sends base64 image data to Langfuse. Langfuse then
attempts to upload these images to media storage, causing 1m31s timeouts.

Setting recordInputs: false prevents this while still capturing user
text input via setTraceInput().
This commit is contained in:
dayuan.jiang
2025-12-05 01:14:01 +09:00
parent 95e8a9c0c0
commit 562751c913

View File

@@ -72,7 +72,9 @@ export function getTelemetryConfig(params: {
return {
isEnabled: true,
recordInputs: true,
// Disable automatic input recording to avoid uploading large base64 images to Langfuse media
// User text input is recorded manually via setTraceInput
recordInputs: false,
recordOutputs: true,
metadata: {
sessionId: params.sessionId,