Skip to main content Svelte Highlight v7.21.1

TraceQL language preview

1. Error spanset

resource attributes and status literals
horizon-dark
{ resource.service.name = "api" && status = error }
atom-one-dark
{ resource.service.name = "api" && status = error }
github-dark
{ resource.service.name = "api" && status = error }
dracula
{ resource.service.name = "api" && status = error }
nord
{ resource.service.name = "api" && status = error }
github
{ resource.service.name = "api" && status = error }

2. Structural pipeline

child spanset >> and count()
horizon-dark
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()
atom-one-dark
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()
github-dark
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()
dracula
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()
nord
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()
github
{ span.http.status_code >= 500 } >> { name = "SQL SELECT" } | count()

3. Duration filter

comments and duration literals
horizon-dark
# slow traces
{ duration > 5s }
atom-one-dark
# slow traces
{ duration > 5s }
github-dark
# slow traces
{ duration > 5s }
dracula
# slow traces
{ duration > 5s }
nord
# slow traces
{ duration > 5s }
github
# slow traces
{ duration > 5s }