Tempo: Display start time in search results as relative time (#44568)

* Explore: modify tempo trace start time to human readable format in table output

Signed-off-by: tharun <rajendrantharun@live.com>

* add unit tests

Signed-off-by: tharun <rajendrantharun@live.com>
This commit is contained in:
Tharun Rajendran
2022-01-31 20:37:43 +05:30
committed by GitHub
parent 76603b93d6
commit de1661e877
3 changed files with 91 additions and 7 deletions

View File

@@ -2202,3 +2202,24 @@ export const otlpResponse = {
},
],
};
export const tempoSearchResponse = {
traces: [
{
traceID: 'e641dcac1c3a0565',
rootServiceName: 'c10d7ca4e3a00354',
startTimeUnixNano: '1643356828724000000',
durationMs: 65,
},
{
traceID: 'c2983496a2b12544',
rootServiceName: '<root span not yet received>',
startTimeUnixNano: '1643342166678000000',
durationMs: 93,
},
],
metrics: {
inspectedTraces: 2,
inspectedBytes: '83720',
},
};