fix: added handling for new key - duration_nano in traces (#6658)

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
This commit is contained in:
SagarRajput-7 2024-12-27 12:06:18 +05:30 committed by GitHub
parent 9f6419c2f8
commit 825d2dfcbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -29,7 +29,8 @@ function TimeSeriesViewContainer({
currentQuery.builder.queryData.forEach(
({ aggregateAttribute, aggregateOperator }) => {
const isExistDurationNanoAttribute =
aggregateAttribute.key === 'durationNano';
aggregateAttribute.key === 'durationNano' ||
aggregateAttribute.key === 'duration_nano';
const isCountOperator =
aggregateOperator === 'count' || aggregateOperator === 'count_distinct';

View File

@ -1,5 +1,5 @@
export const getSpanOrderParam = (key: string): string => {
if (key === 'durationNano') {
if (key === 'durationNano' || key === 'duration_nano') {
return 'duration';
}
if (key === 'timestamp') {

View File

@ -96,7 +96,7 @@ export const getListColumns = (
);
}
if (key === 'durationNano') {
if (key === 'durationNano' || key === 'duration_nano') {
return (
<BlockLink to={getTraceLink(item)} openInNewTab={false}>
<Typography data-testid={key}>{getMs(value)}ms</Typography>