Skip to content

Commit 4be7809

Browse files
author
Hamas Shafiq
authored
Tempo: Wrap the autocomplete value for a tag in double quotes (grafana#55610)
1 parent ff72257 commit 4be7809

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/app/plugins/datasource/tempo/language_provider.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ export default class TempoLanguageProvider extends LanguageProvider {
7575
tagName = tagName.split('=')[0];
7676

7777
const response = await this.request(`/api/search/tag/${tagName}/values`, []);
78+
7879
const suggestions: CompletionItemGroup[] = [];
7980

8081
if (response && response.tagValues) {
8182
suggestions.push({
8283
label: `Tag Values`,
83-
items: response.tagValues.map((tagValue: string) => ({ label: tagValue })),
84+
items: response.tagValues.map((tagValue: string) => ({ label: tagValue, insertText: `"${tagValue}"` })),
8485
});
8586
}
8687
return { suggestions };

0 commit comments

Comments
 (0)