First look at LangSmith tracing
Notebook· 01.08· 60–90 min· Lesson 17 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
- Explain runs, traces, projects and threads, and why you trace from day one.
- Capture a run tree locally (no account needed) and read its types, names, timings, tags, metadata and tokens.
- Enable LangSmith selectively with
tracing_context, send traces to a named project, and flush them withwait_for_all_tracers. - Trace your own Python functions with
@traceableso LangChain calls nest under them. - Navigate a trace in the LangSmith UI, and apply the privacy rules (what's in a trace, masking, retention).
Before you start
Lessons 01.01–01.07 (especially 01.07: a trace is the run tree of a Runnable).
