OptionalgenerationAdditional metadata to attach to the generation
OptionalgenerationCustom name for the generation observation (defaults to SDK method name)
OptionallangfuseInformation 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
OptionalparentOpenTelemetry span context to use as parent for the generated span
OptionalsessionSession identifier to group related interactions
OptionaltagsTags for categorizing and filtering traces
OptionaltraceName for the trace that will contain this generation
OptionaluserUser 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.