docs/versioned_docs/version-1.9.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.
Langflow traces can run alongside supported third-party tracing providers.
If both are enabled, Langflow stores native traces in the trace and span database tables for the Trace View, and also sends tracing data to the configured external provider.
To disable Langflow native tracing and use only an external tracing provider, set LANGFLOW_NATIVE_TRACING=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.