Skip to content
Courses/Local MLOps and model deployment/Observability with Langfuse and OpenTelemetry

Observability with Langfuse and OpenTelemetry

If a response goes wrong and you can't reconstruct which prompt, model, context, and tool were used, you don't have production—you have a black box with a pretty interface.

  • Record useful traces without leaking sensitive data.
  • Measure latency, errors, cost, and quality per route.
  • Use request_id to follow a complete request.

What to log

  • Technical identity: request_id, route, app version.
  • Model: provider, name, version, and parameters.
  • Performance: total latency, tokens, errors, and retries.
  • RAG: retrieved documents, not necessarily full text.
  • Quality: associated eval, feedback, and expected outcome.

Minimum event

Experiment tracking and lightweight registry

Besides per-request traces, store which model, prompt, dataset, and configuration version produced each result. You can start with a simple table before setting up a full registry.

Terminal
model_registry:
  id: "support-router-v3"
  base_model: "qwen3:8b-q5"
  runtime: "ollama"
  prompt_version: "support-en-v7"
  eval_dataset: "support-evals-2026-07"
  score:
    answer_ok: 0.86
    refusal_ok: 0.94
    citation_ok: 0.81
  status: "pilot"
  owner: "support-team"

MLflow, Langfuse, OpenTelemetry, or your own table can coexist. The important part is not losing the relationship between version, eval, deployment, and observed result.

Terminal
{
  "request_id": "req_20260703_001",
  "route": "/api/chat",
  "model": "local-qwen",
  "prompt_version": "support-v3",
  "latency_ms": 1840,
  "input_tokens": 620,
  "output_tokens": 210,
  "retrieved_docs": ["manual-001#p4", "faq-009#p1"],
  "error": null
}
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue