kodeagent.tracer.LangfuseTracerManager#

class kodeagent.tracer.LangfuseTracerManager[source]#

Langfuse implementation of TracerManager.

Integrates with Langfuse observability platform to create and manage hierarchical traces, spans, and generations. Tracing is disabled if the Langfuse package is not installed.

Initialize the Langfuse client.

__init__() None[source]#

Initialize the Langfuse client.

Methods

__init__()

Initialize the Langfuse client.

flush()

Flush Langfuse traces.

start_generation(parent, name, input_data)

Start a nested LLM generation under a parent observation with Langfuse.

start_span(parent, name, input_data)

Start a nested span under a parent observation with Langfuse.

start_trace(name, input_data)

Start a new trace with Langfuse.