You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
While using the Vercel AI SDK I noticed that the current value for the span/trace attribute length aren't sufficient to provide meaningful trace information from the AI SDK. This results in truncated logs.
I personally was using the LangfuseExporter and while the exporter was added successfully it suffered from the same limitations placed on traces for the trigger platform.
It would be great if a solution could be found to enable these SDK's to export the information in it's entirety so as to provide the information I'm looking for when debugging/monitoring my LLM applications.
Describe the solution you'd like to see
Considering these attributes will contain an entire message history, you're looking at limits vastly exceeding what you have set currently. The current limit doesn't even cover the system prompt. With that in mind, I can't really give you much of an idea of what the limits should look like other than "close to or exceeding model context windows".
Describe alternate solutions
A way to provide the raw spans to exporters without truncation.
We could increase the client side limits while truncating attribute value lengths on the server to prevent excessive storage usage as a quick fix
I've moved back to doing my own tracing with the Langfuse client in the interim so this isn't blocking for me. But it would be good to get the full available tracing at some point.
Just to provide an overview how how I do the manual implementation currently.
At the top of my trigger function I create a trace:
consttrace=langfuse.trace({name: "my-trigger-task",sessionId: conversation_id,// Passed into my task triggeruserId: user_id,// Passed into my task triggerinput: message,});
Activity
ericallam commentedon Apr 24, 2025
We could increase the client side limits while truncating attribute value lengths on the server to prevent excessive storage usage as a quick fix
robechun commentedon Apr 25, 2025
Following—also running into the same problem
Mortalife commentedon Apr 25, 2025
I've moved back to doing my own tracing with the Langfuse client in the interim so this isn't blocking for me. But it would be good to get the full available tracing at some point.
robechun commentedon Apr 28, 2025
Bump; would rather not have to implement custom tracing with the langfuse client; is there a workaround I can use with trigger?
Mortalife commentedon May 9, 2025
Just to provide an overview how how I do the manual implementation currently.
At the top of my trigger function I create a trace:
I use Langfuse for managing my prompts:
I then start a generation:
The generation is used to to emit events, I also pass it to my tool generator functions, to allow access to the trace context when tools are called.
And at the end of my generation I pass in end result:
Finally, make sure you close out the langfuse client
ericallam commentedon Jul 9, 2025
This has been fixed in
4.0.0-v4-beta.22