Observability in depth: LangSmith and OpenTelemetry
Notebook· 10.02· 2–3 h· Lesson 79 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Trace your own functions with
@traceable, and inspect the run tree locally without sending anything. - Record prompt version, model ID and git commit as metadata on every trace, and group turns into threads.
- Mask secrets and personal data before a trace leaves your process, and know what the built-in rules miss.
- Export the same work as OpenTelemetry spans, with GenAI attribute names, and route them to LangSmith or any OTLP backend.
- Query traces with the SDK, filtered by metadata, to feed the next error analysis.
Before you start
Lesson 10.01; Lesson 01.08 (first traces, mastery.evals.meta).
Python in this lesson
Python guideNew hereyield from
