Fix LangfuseOtelSpanAttributes constants to match expected values at https://python.reference.langfuse.com/langfuse#LangfuseOtelSpanAttributes (#13659)

- Update TRACE_USER_ID from 'langfuse.trace.user_id' to 'user.id'
- Update SESSION_ID from 'langfuse.trace.session_id' to 'session.id'
This commit is contained in:
William Finnigan 2025-08-15 19:08:32 +01:00 committed by GitHub
parent 6f2264a13d
commit 99f30fe5b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,8 @@ class LangfuseSpanAttributes(str, Enum):
MASK_OUTPUT = "langfuse.generation.mask_output"
# ---- Trace-level metadata ----
TRACE_USER_ID = "langfuse.trace.user_id"
SESSION_ID = "langfuse.trace.session_id"
TRACE_USER_ID = "user.id"
SESSION_ID = "session.id"
TAGS = "langfuse.trace.tags"
TRACE_NAME = "langfuse.trace.name"
TRACE_ID = "langfuse.trace.id"