Tracing alerts
Tracing alerts notify you when spans slower than a latency you set occur on the services, tags, applications, or subsystems you select. Use them to catch slow operations before they affect more users.
The Tracing tab in Alert type offers two types:
| Type | When it fires |
|---|---|
| Threshold | When the number of slow spans crosses a count you set within a time window. |
| Immediate | On every slow span that matches, as it arrives, with no count or time window. |
Use Immediate when a single slow span already matters, for example on a payment or login operation. Use Threshold when occasional slow spans are normal and you only want to know when they add up.
What you need
- Access to Coralogix with permission to create alerts
- Trace data ingesting from the services you want to monitor
Create a tracing alert
- Go to Alerts, then select Create alert. The alert creation wizard opens on the Configuration step.
- In Alert type, select the Tracing tab, then Threshold or Immediate.
- Define which spans count, as described in Select the spans.
- Set the condition for the type you selected.
- Complete the Response and Summary steps, as described in Configuring an alert definition.
Select the spans
Both types use the same query. Target spans by latency, span tags, application, subsystem, service, and action:
- Span tags: add a tag as a Key and Value pair to include only matching spans.
- Applications, Subsystems, Services, and Actions: scope the alert to specific sources, or leave All selected. Each span can carry a different application or subsystem.
Threshold condition
The condition reads as a sentence: more than a number of spans with a latency greater than a value in milliseconds are recorded within a time window. For example, alert when more than 10 spans with a latency greater than 500 ms are recorded within 5 minutes.
- Set a Priority from P1 to P5. A tracing threshold alert has one condition.
- With Group by set, matching spans are counted per unique combination of the selected fields, and the alert fires separately for each. Only spans that include all selected group-by fields are counted.
Tracing threshold alerts don't have a missing data setting.
Immediate condition
The condition reads: When spans with latency greater than a value in milliseconds, immediately trigger an alert. Every matching span fires the alert on its own, so there is no count or time window to set.
- Set a Priority from P1 to P5.
- Immediate tracing alerts don't support Group by. To be alerted separately per service or tag value, use Threshold with Group by instead.
Keep the filters tight, since every matching span produces a notification.
Related resources
Next steps
Combine multiple alerts into a staged trigger with Flow alerts.