mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
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:
parent
47f8717149
commit
0759c98504
@ -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.'],
|
||||
|
@ -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.';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user