SigNoz
Docs
PricingCustomers
Get Started - Free
Docs
IntroductionContributingMigrate from DatadogSigNoz API
OpenTelemetry
What is OpenTelemetryOpenTelemetry Collector GuideOpenTelemetry Demo
Community
Support
Slack
X
Launch Week
Changelog
Dashboard Templates
DevOps Wordle
Newsletter
KubeCon, Atlanta 2025
More
SigNoz vs DatadogSigNoz vs New RelicSigNoz vs GrafanaSigNoz vs Dynatrace
Careers
AboutTermsPrivacySecurity & Compliance
SigNoz - Open Source Datadog Alternative
SigNoz
All systems operational
HIPAASOC-2
SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Host - This page applies to self-hosted SigNoz editions.

Querying Traces

SigNoz supports querying traces using the visual Query Builder in both the Trace Explorer and Dashboards, with ClickHouse SQL available as an additional option in Dashboards.

Query Builder

The Query Builder is the primary way to query traces. It is available in both Trace Explorer and Dashboards.

Filtering

Use the Filter field to narrow down spans using attributes. Supported operators include:

IntentOperatorExample
Exact match=service.name = 'frontend'
Exclude!=service.name != 'redis'
One of severalINhttpMethod IN ('GET', 'POST')
SubstringLIKEname LIKE '%payment%'
Field existsEXISTSdb.system EXISTS

Combine filters with AND / OR for complex queries. See the Search Syntax guide and Operators Reference for the full list of operators and syntax details.

Aggregation (Time Series & Table views)

Trace queries support a full set of aggregation functions in the Time Series and Table views:

  • Statistical — Count, Count Distinct, Sum, Avg, Min, Max
  • Percentiles — P05, P10, P25, P50, P75, P90, P95, P99 (commonly used for latency analysis)
  • Rate — Rate, Rate Sum, Rate Avg, Rate Max, Rate Min

Group By (Time Series & Table views)

Segment results by one or more attributes in the Time Series and Table views. For example, grouping by service.name and operation produces a separate series for each service-operation pair. Useful for comparing latency or error rates across services, endpoints, or status codes.

Having

Filter results after aggregation. For example, p99(duration) > 500 shows only groups where P99 latency exceeds 500ms. See Result Manipulation for sorting, limiting, and conditional filtering options.

Formulas

Combine up to ten queries using formulas. For example, calculate error rate: (A / B) * 100, where A counts errored spans and B counts total spans. See Multi-Query Analysis for formula functions and examples.

For full details on the Query Builder, see the Query Builder documentation.

Trace Matching

Trace Matching goes beyond single-span filtering — it lets you define multiple span queries and combine them with trace-level operators to find spans based on their relationships within a trace.

OperatorSymbolWhat it returns
Has Direct Child=>Spans from A that have a direct child matching B
Has Descendant->Spans from A that are ancestors (at any depth) of B
AND&&Spans from A in traces that also contain spans matching B
OR||Union of spans from both A and B
NOTA NOT BSpans from A in traces that do not contain any spans matching B

For full operator reference and examples, see Multi-Query Analysis.

ClickHouse SQL (Dashboards Only)

When building Dashboard panels, you can write raw ClickHouse SQL queries against the traces tables for advanced analytics beyond what the Query Builder supports.

For details and example queries, see the ClickHouse Traces Query guide.

Next Steps

  • Trace Details — inspect individual traces with flamegraph and waterfall views
  • Aggregation & Grouping — detailed reference for aggregation functions and group by
  • Result Manipulation — sorting, limiting, and Having clause patterns
  • Multi-Query Analysis — formulas, error rate calculations, and trace matching operators
  • Time Aggregation Windows — how step intervals work for time series queries
  • Advanced Query Examples — complex query patterns and real-world use cases
  • Trace-based Alerts — get notified on latency spikes or error rate changes
  • Correlate Traces and Logs — navigate between related traces and logs
  • Traces API — search and aggregate traces programmatically

Last updated: May 20, 2026

Edit on GitHub

Was this page helpful?

Your response helps us improve this page.

Prev
Reference
Next
APM Metrics, Dashboards & Alerts
On this page
Query Builder
Filtering
Aggregation (Time Series & Table views)
Group By (Time Series & Table views)
Having
Formulas
Trace Matching
ClickHouse SQL (Dashboards Only)
Next Steps

Is this page helpful?

Your response helps us improve this page.