mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Transform dataframe to jaeger format * Transform dataframe to Zipkin format * Add endpoint type and shared to Zipkin * Transform dataframe to OTLP format * Add data tab tests and note in inspector docs * Remove comments and logs * Resolve typescript strict errors * Update docs/sources/explore/explore-inspector.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs * Improve OTLP conversion to include service info and additional tags Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
17 lines
626 B
TypeScript
17 lines
626 B
TypeScript
import { transformResponse, transformToZipkin } from './transforms';
|
|
import { traceFrameFields, zipkinResponse } from './testData';
|
|
import { MutableDataFrame } from '@grafana/data';
|
|
|
|
describe('transformResponse', () => {
|
|
it('transforms response', () => {
|
|
const dataFrame = transformResponse(zipkinResponse);
|
|
|
|
expect(dataFrame.fields).toMatchObject(traceFrameFields);
|
|
});
|
|
it('converts dataframe to ZipkinSpan[]', () => {
|
|
const dataFrame = transformResponse(zipkinResponse);
|
|
const response = transformToZipkin(new MutableDataFrame(dataFrame));
|
|
expect(response).toMatchObject(zipkinResponse);
|
|
});
|
|
});
|