docs/versioned_docs/version-1.8.0/Develop/traces.mdx
import Icon from "@site/src/components/icon"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Langflow’s Traces feature records detailed execution traces for your flows and components so that you can debug issues, measure latency, and track token usage without relying on external observability services.
Trace data is stored in the Langflow database in the trace and span tables.
Trace data is presented in the Flow Activity and Trace Details pages in the UI, and can be retrieved from the /monitor/traces API endpoint.
Traces are enabled by default.
To disable Langflow tracing and use a different tracing provider, set LANGFLOW_NATIVE_TRACING to false.
The tracer records:
Each span includes:
To view traces in the Langflow UI, do the following:
To programmatically query traces, use the /monitor/traces endpoints.
For full parameter details and code examples in Python, TypeScript, and curl, see Monitor endpoints: Get traces.