Tempo: Fix user facing typo in pipeline operator error message (#89638)

Tempo: Fix user facing typo in TraceQL pipeline operator error message
This commit is contained in:
Chris Hodges 2024-06-25 06:45:16 -05:00 committed by GitHub
parent 47f8717149
commit 0759c98504
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -102,7 +102,7 @@ describe('Highlighting', () => {
['{span.http.status_code = 200} &&', 'Invalid spanset expression after spanset combining operator.'],
[
'{span.http.status_code = 200} && {span.http.status_code = 200} | foo() > 3',
'Invalid aggregation operator after pipepile operator.',
'Invalid aggregation operator after pipeline operator.',
],
[
'{span.http.status_code = 200} && {span.http.status_code = 200} | avg() > 3',
@ -134,9 +134,9 @@ describe('Highlighting', () => {
['{ span. }', 'Invalid expression for spanset.'],
['{.foo=}', 'Invalid value after comparison or arithmetic operator.'],
['{.foo="}', 'Invalid value after comparison or arithmetic operator.'],
['{.foo=300} |', 'Invalid aggregation operator after pipepile operator.'],
['{.foo=300} && {.bar=200} |', 'Invalid aggregation operator after pipepile operator.'],
['{.foo=300} && {.bar=300} && {.foo=300} |', 'Invalid aggregation operator after pipepile operator.'],
['{.foo=300} |', 'Invalid aggregation operator after pipeline operator.'],
['{.foo=300} && {.bar=200} |', 'Invalid aggregation operator after pipeline operator.'],
['{.foo=300} && {.bar=300} && {.foo=300} |', 'Invalid aggregation operator after pipeline operator.'],
['{.foo=300} | avg(.value)', 'Invalid comparison operator after aggregator operator.'],
['{.foo=300} && {.foo=300} | avg(.value)', 'Invalid comparison operator after aggregator operator.'],
['{.foo=300} | avg(.value) =', 'Invalid value after comparison operator.'],

View File

@ -52,7 +52,7 @@ export const computeErrorMessage = (errorNode: SyntaxNode) => {
case SpansetPipelineExpression:
return 'Invalid spanset combining operator after spanset expression.';
case Pipe:
return 'Invalid aggregation operator after pipepile operator.';
return 'Invalid aggregation operator after pipeline operator.';
default:
return 'Invalid spanset expression after spanset combining operator.';
}