Skip to content

span.http.status_code is a string(not converted to int) in TraceQL #2179

Answered by joe-elliott
andreivaloshyn asked this question in Q&A
Discussion options

You must be logged in to vote

for performance reasons there are currently no plans to attempt data type conversions in traceql. this will return nothing b/c the condition is false:

{ "1" = 1 }

we are considering supporting range operators for strings though. in this case we'd use string semantics to compare the following:

{ span.http.status_code < "300" }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andreivaloshyn
Comment options

@joe-elliott
Comment options

@andreivaloshyn
Comment options

Answer selected by andreivaloshyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants