DQL filtering and grouping by Request Attributes

I have a Service request that applies a Request Attribute (RA) to the Request if it has been attempted more than once (The number set in the RA will increase if attempted further).

RA.retry_count

On that request there is also a RA for a correlation_id so the repeated attempts can be grouped.

RA.Correlation_id

Does anyone have a good example of any DQL that can allow me to filter on RA.retry_count being >= 3

Thanks in advance

Hello!

You could try something like this:

fetch spans
| filter isNotNull(request_attribute.retry_count)
|fieldsAdd request_attribute.retry_count, request_attribute.Correlation_id 
|filter request_attribute.retry_count >= 3

Hope this helps!!

This actually works! Thanks!