Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangfuseTracer ¶
type LangfuseTracer struct {
// contains filtered or unexported fields
}
LangfuseTracer wraps the Langfuse client and provides eino integration helpers.
func NewLangfuseTracer ¶
func NewLangfuseTracer(cfg *config.LangfuseConfig) *LangfuseTracer
NewLangfuseTracer creates a LangfuseTracer from the config. Returns nil if required credentials are missing.
func (*LangfuseTracer) AgentMiddleware ¶
func (t *LangfuseTracer) AgentMiddleware() adk.AgentMiddleware
AgentMiddleware returns an adk.AgentMiddleware that records model generations and tool-call spans to Langfuse, keyed by the traceID stored in the context.
func (*LangfuseTracer) Flush ¶
func (t *LangfuseTracer) Flush()
Flush ensures all buffered events are sent to Langfuse. It blocks at most defaultFlushTimeout to avoid stalling program exit.
func (*LangfuseTracer) WithNewTrace ¶
WithNewTrace creates a new Langfuse trace and returns a context carrying its ID.
Click to show internal directories.
Click to hide internal directories.