Skip to main content

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:

  1. Data selection area (top): Choose the trace data source (Datasource, Database, Table), time field, and time range.
  2. Filter area (left): Filter traces by Service, Operation, Tags, and Duration.
  3. 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.
  4. Trace list area (bottom right): A list of matching traces showing service, operation, trace_id, duration, and span count. The default sort Most Recent lists 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.

Traces page overview

Open a trace to inspect its waterfall and spans:

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

Trace Panel details

Common filter examples​

Filter by service​

Find traces for one service
Service = frontend-web

Quickly view traces produced by the specified service.

Filter by service

Filter by operation​

Find traces for an operation
Operation = HTTP POST

Useful for locating a specific endpoint or request type.

Filter by operation

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 tags

Filter by duration​

Find requests within a duration range

Set Min Duration to 100ms and Max Duration to 1.2s.

Quickly pinpoint slow requests.

Filter by duration

Sorting and pagination​

The trace list supports several sort options:

  • Most Recent
  • Longest / Shortest Duration
  • Most / Fewest Spans

It also supports paginated browsing.

Sorting and pagination

Common errors​

SymptomCheck and resolution
No traces matchWiden 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 traceSearch from an entry service and inspect the waterfall. Check how your plugin version selects traces and how root spans are recorded.
A waterfall is incompleteCheck sampling, trace-context propagation, Collector export errors, and the retention of all participating services' spans.
A tag filter is emptyInspect 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.

Enter to send · Shift+Enter for a new line