13.02

Langfuse setup and the OpenAI drop-in

skillmaxingPython with AILangfuse setup and the OpenAI drop-in
Visual lesson

Langfuse setup and the OpenAI drop-in

Included with Pro · 4:18
Lessons · 915 words

Langfuse is a tracing backend for LLM applications. It stores traces, generations, and scores, and gives you a UI to search and read them. The Python SDK, version three, sits on OpenTelemetry, which is why nesting and context propagation work the way they do in later lessons.

The fastest way in is the OpenAI drop-in. You import openai from langfuse.openai instead of from openai, and every call the client makes is recorded: the model, the full input, the output, token counts, cost, and latency. Nothing else in your code changes.

Pro

Continue reading

Pro unlocks every video lesson, the full notes and runnable code across the Python with AI course, from the language itself to agents, MCP, Langfuse and deployment.

Unlock full access to
Python with AIAI researchComplete system design
30% off with LAUNCH30ends in 7h 40m
Buy now
View all plans ·Already Pro? Sign in
124 online