diff --git a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx index de8e1c3133d..d08b30d1f5f 100644 --- a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx +++ b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx @@ -86,7 +86,10 @@ export const GroupByField = (props: Props) => { .map((t) => ({ label: t, value: t })); return ( - + <> {query.groupBy?.map((f, i) => { const tags = tagOptions(f) @@ -152,15 +155,27 @@ export const GroupByField = (props: Props) => { ); })} {query.groupBy && query.groupBy.length > 0 && query.groupBy[0].tag && ( - + + The aggregate by feature is deprecated. We recommend using Explore Traces instead. If you want to write your + own TraceQL queries to replicate this API, please check + + this page + + . + )} ); }; -export const notice = 'The aggregate by feature is deprecated and will be removed in the future.'; - const getStyles = (theme: GrafanaTheme2) => ({ addTag: css({ marginLeft: theme.spacing(1), @@ -169,4 +184,9 @@ const getStyles = (theme: GrafanaTheme2) => ({ width: '500px', marginTop: theme.spacing(0.75), }), + noticeLink: css({ + color: theme.colors.text.link, + textDecoration: 'underline', + marginLeft: '5px', + }), });