Skip to content

How can I get the trace_id in langfuse.openai.OpenAI? #1051

Answered by marcklingen
yangge2333 asked this question in Support
Discussion options

You must be logged in to vote

The OpenAI integration does not return the trace_id if it is automatically created. This is a great idea and we're open for contributions on this.

However, this should not be blocking, as all users who want to add scores to the same trace or add the trace_id to their logs use this: https://langfuse.com/docs/openai#fully-featured-create-trace-via-sdk

Thereby you create a trace using the Langfuse Python SDK and have full access to all trace parameters and methods.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcklingen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants