From 76e1946bd7e923124c5f6c1430ea40b9036e68e4 Mon Sep 17 00:00:00 2001 From: Hamas Shafiq Date: Tue, 24 Jan 2023 19:21:48 +0000 Subject: [PATCH] Tempo: [TraceQL] Do not override the `status` tag name (#62030) --- .../plugins/datasource/tempo/traceql/autocomplete.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/public/app/plugins/datasource/tempo/traceql/autocomplete.ts b/public/app/plugins/datasource/tempo/traceql/autocomplete.ts index 3ba40c6b7cd..f7ea65a181b 100644 --- a/public/app/plugins/datasource/tempo/traceql/autocomplete.ts +++ b/public/app/plugins/datasource/tempo/traceql/autocomplete.ts @@ -92,15 +92,6 @@ export class CompletionProvider implements monacoTypes.languages.CompletionItemP this.registerInteractionCommandId = id; } - private overrideTagName(tagName: string): string { - switch (tagName) { - case 'status': - return 'status.code'; - default: - return tagName; - } - } - private async getTagValues(tagName: string): Promise>> { let tagValues: Array>; @@ -148,8 +139,7 @@ export class CompletionProvider implements monacoTypes.languages.CompletionItemP type: 'OPERATOR', })); case 'SPANSET_IN_VALUE': - const tagName = this.overrideTagName(situation.tagName); - const tagValues = await this.getTagValues(tagName); + const tagValues = await this.getTagValues(situation.tagName); const items: Completion[] = []; const getInsertionText = (val: SelectableValue): string => {