Optional
generationAdditional metadata to attach to the generation
Optional
generationCustom name for the generation observation (defaults to SDK method name)
Optional
langfuseInformation about the Langfuse prompt used for this generation
Whether this is a fallback prompt due to retrieval failure
Name of the prompt template in Langfuse
Version number of the prompt template
Optional
parentOpenTelemetry span context to use as parent for the generated span
Optional
sessionSession identifier to group related interactions
Optional
tagsTags for categorizing and filtering traces
Optional
traceName for the trace that will contain this generation
Optional
userUser identifier for associating the trace with a specific user
Configuration options for Langfuse OpenAI tracing.
This interface defines all available options for customizing how OpenAI SDK calls are traced and stored in Langfuse. It includes both trace-level metadata and generation-specific configuration.