
How to Link Prompts to Traces
When you uselangwatch.prompts.get() within a trace context, LangWatch automatically links the prompt to the trace:
- Python SDK
- TypeScript SDK
← Back to Prompt Management Overview
Link prompts to execution traces in LangWatch to analyze performance, measure regressions, and support informed AI agent evaluations.

langwatch.prompts.get() within a trace context, LangWatch automatically links the prompt to the trace: