Next.js + Vercel AI SDK + Langfuse: How to get observationId
(responseId) for langfuse scores?
#5415
Unanswered
natterstefan
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear vercel/ai-Community,
I need your help please, as I do not know how to obtain the
observationId
and attach it to ascore
in langfuse.Note: originally asked in the langfuse community, but they sent me here with the following hint: "(...) you'd need the SDK to expose the span ids of each of the requests." (src)
Context: this is how my
experimental_telemetry
looks like:The docs state
But how and where do I get the observationId from, taking into account that I use
streamText
(https://sdk.vercel.ai/docs/reference/ai-sdk-core/stream-text)Thank you very much for your time and help!
Beta Was this translation helpful? Give feedback.
All reactions