Distributed Trace Analysis
Use Traces in Grafana Doris App to find slow requests and inspect their call relationships. A trace represents a request across services. Its spans record individual operations, their timing, attributes, and parent-child relationships.
Before you start, ingest trace data into your warehouse and configure the Grafana data source and trace table. See Quick Start. Trace completeness depends on application instrumentation, context propagation, sampling, and successful ingestion. A missing span does not necessarily mean an operation did not run.
As shown below, the Traces page consists of four areas:
- Data selection area (top): Choose the trace data source (Datasource, Database, Table), time field, and time range.
- Filter area (left): Filter traces by Service, Operation, Tags, and Duration.
- Trace distribution area (top right): A scatter plot shows matching traces by start time and duration. Bubble size represents span count, helping you find slow traces or traces with many spans. Click a bubble to view that trace's details as a waterfall chart.
- Trace list area (bottom right): A list of matching traces showing service, operation,
trace_id, duration, and span count. The default sortMost Recentlists the newest traces by start time in descending order. You can switch the sort to show the longest/shortest traces or those with the most/fewest spans.

Open a trace to inspect its waterfall and spans:
- View the trace's call-chain minimap and waterfall chart, including each span's execution window and call relationships.
- Click a span to view its start time, duration, and contextual information including Span Attributes and Resource Attributes.
- Click Span Filter to filter spans by Service Name, Span Name, Duration, Tags, etc.

Common filter examples
Filter by service
Find traces for one service
Service = frontend-web
Quickly view traces produced by the specified service.

Filter by operation
Find traces for an operation
Operation = HTTP POST
Useful for locating a specific endpoint or request type.

Filter by tags
Match a span attribute
upstream_cluster.name="flagservice"
Use key=value syntax in the tag filter to match span attributes. The example key must exist in your trace data.

Filter by duration
Find requests within a duration range
Set Min Duration to 100ms and Max Duration to 1.2s.
Quickly pinpoint slow requests.

Sorting and pagination
The trace list supports several sort options:
- Most Recent
- Longest / Shortest Duration
- Most / Fewest Spans
It also supports paginated browsing.

Common errors
| Symptom | Check and resolution |
|---|---|
| No traces match | Widen the time range, confirm ingestion, and search by an entry service used by your application. Use the quick start's load-generator service for its demo. |
| An internal service filter misses a trace | Search from an entry service and inspect the waterfall. Check how your plugin version selects traces and how root spans are recorded. |
| A waterfall is incomplete | Check sampling, trace-context propagation, Collector export errors, and the retention of all participating services' spans. |
| A tag filter is empty | Inspect a stored span and use the actual attribute name and value. |
See also
- Log Search for log-to-trace correlation.
- Dashboards for SQL analysis of trace and service metrics.