diff --git a/public/app/plugins/datasource/jaeger/responseTransform.ts b/public/app/plugins/datasource/jaeger/responseTransform.ts index 4e6e8683aa7..07123123422 100644 --- a/public/app/plugins/datasource/jaeger/responseTransform.ts +++ b/public/app/plugins/datasource/jaeger/responseTransform.ts @@ -71,6 +71,7 @@ export function createTableFrame(data: TraceResponse[], instanceSettings: DataSo name: 'traceID', type: FieldType.string, config: { + unit: 'string', displayNameFromDS: 'Trace ID', links: [ { diff --git a/public/app/plugins/datasource/tempo/resultTransformer.test.ts b/public/app/plugins/datasource/tempo/resultTransformer.test.ts index b6e25519c8a..f5a1741f106 100644 --- a/public/app/plugins/datasource/tempo/resultTransformer.test.ts +++ b/public/app/plugins/datasource/tempo/resultTransformer.test.ts @@ -102,6 +102,9 @@ describe('createTableFrameFromSearch()', () => { expect(frame.fields[0].name).toBe('traceID'); expect(frame.fields[0].values.get(0)).toBe('e641dcac1c3a0565'); + // TraceID must have unit = 'string' to prevent the ID from rendering as Infinity + expect(frame.fields[0].config.unit).toBe('string'); + expect(frame.fields[1].name).toBe('traceName'); expect(frame.fields[1].values.get(0)).toBe('c10d7ca4e3a00354 '); diff --git a/public/app/plugins/datasource/tempo/resultTransformer.ts b/public/app/plugins/datasource/tempo/resultTransformer.ts index 20a1419dd6f..74e385f1e92 100644 --- a/public/app/plugins/datasource/tempo/resultTransformer.ts +++ b/public/app/plugins/datasource/tempo/resultTransformer.ts @@ -600,6 +600,7 @@ export function createTableFrameFromSearch(data: SearchResponse[], instanceSetti name: 'traceID', type: FieldType.string, config: { + unit: 'string', displayNameFromDS: 'Trace ID', links: [ {