@perses-dev/tracing-gantt-chart-plugin 0.13.0 → 0.14.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{TracingGanttChart.ca3d72b7.js → TracingGanttChart.5745bc80.js} +4 -4
- package/__mf/js/async/121.618b4fb6.js +2 -0
- package/__mf/js/async/192.c6c201e3.js +1 -0
- package/__mf/js/async/2.48e075e5.js +1 -0
- package/__mf/js/async/235.19919f16.js +1 -0
- package/__mf/js/async/247.ca32b71b.js +1 -0
- package/__mf/js/async/274.6cf6422e.js +2 -0
- package/__mf/js/async/354.f46df209.js +4 -0
- package/__mf/js/async/354.f46df209.js.LICENSE.txt +9 -0
- package/__mf/js/async/356.318657d1.js +1 -0
- package/__mf/js/async/392.924637be.js +2 -0
- package/__mf/js/async/436.d35ff1bd.js +110 -0
- package/__mf/js/async/470.22f77478.js +2 -0
- package/__mf/js/async/518.0bb3a33a.js +43 -0
- package/__mf/js/async/518.0bb3a33a.js.LICENSE.txt +102 -0
- package/__mf/js/async/587.05c4c4aa.js +1 -0
- package/__mf/js/async/616.7443c7ea.js +1 -0
- package/__mf/js/async/663.94619f01.js +1 -0
- package/__mf/js/async/665.70388bbd.js +2 -0
- package/__mf/js/async/672.2a876b27.js +1 -0
- package/__mf/js/async/941.a9b68d98.js +2 -0
- package/__mf/js/async/968.ad5c8bce.js +1 -0
- package/__mf/js/async/__federation_expose_TracingGanttChart.bf18fa45.js +1 -0
- package/__mf/js/async/lib-router.b71f208a.js +2 -0
- package/__mf/js/{main.9e057781.js → main.b5e393d7.js} +3 -3
- package/lib/PanelActions.d.ts +3 -3
- package/lib/PanelActions.d.ts.map +1 -1
- package/lib/PanelActions.js +4 -4
- package/lib/PanelActions.js.map +1 -1
- package/lib/TracingGanttChart/DetailPane/Attributes.d.ts +4 -4
- package/lib/TracingGanttChart/DetailPane/Attributes.d.ts.map +1 -1
- package/lib/TracingGanttChart/DetailPane/Attributes.js +4 -4
- package/lib/TracingGanttChart/DetailPane/Attributes.js.map +1 -1
- package/lib/TracingGanttChart/DetailPane/DetailPane.d.ts +3 -3
- package/lib/TracingGanttChart/DetailPane/DetailPane.d.ts.map +1 -1
- package/lib/TracingGanttChart/DetailPane/DetailPane.js +6 -6
- package/lib/TracingGanttChart/DetailPane/DetailPane.js.map +1 -1
- package/lib/TracingGanttChart/DetailPane/SpanEvents.d.ts +3 -3
- package/lib/TracingGanttChart/DetailPane/SpanEvents.d.ts.map +1 -1
- package/lib/TracingGanttChart/DetailPane/SpanEvents.js +7 -7
- package/lib/TracingGanttChart/DetailPane/SpanEvents.js.map +1 -1
- package/lib/TracingGanttChart/DetailPane/SpanLinks.d.ts +3 -3
- package/lib/TracingGanttChart/DetailPane/SpanLinks.d.ts.map +1 -1
- package/lib/TracingGanttChart/DetailPane/SpanLinks.js +4 -4
- package/lib/TracingGanttChart/DetailPane/SpanLinks.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTable.d.ts +4 -4
- package/lib/TracingGanttChart/GanttTable/GanttTable.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTable.js +8 -8
- package/lib/TracingGanttChart/GanttTable/GanttTable.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableHeader.d.ts +3 -3
- package/lib/TracingGanttChart/GanttTable/GanttTableHeader.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableHeader.js +3 -3
- package/lib/TracingGanttChart/GanttTable/GanttTableHeader.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableProvider.d.ts +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableProvider.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableProvider.js +2 -2
- package/lib/TracingGanttChart/GanttTable/GanttTableProvider.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableRow.d.ts +3 -3
- package/lib/TracingGanttChart/GanttTable/GanttTableRow.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/GanttTableRow.js +5 -5
- package/lib/TracingGanttChart/GanttTable/GanttTableRow.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/ResizableDivider.d.ts +1 -1
- package/lib/TracingGanttChart/GanttTable/ResizableDivider.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/ResizableDivider.js +3 -3
- package/lib/TracingGanttChart/GanttTable/ResizableDivider.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanDuration.d.ts +4 -4
- package/lib/TracingGanttChart/GanttTable/SpanDuration.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanDuration.js +4 -4
- package/lib/TracingGanttChart/GanttTable/SpanDuration.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanIndents.d.ts +2 -2
- package/lib/TracingGanttChart/GanttTable/SpanIndents.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanIndents.js +5 -5
- package/lib/TracingGanttChart/GanttTable/SpanIndents.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanLinksButton.d.ts +3 -3
- package/lib/TracingGanttChart/GanttTable/SpanLinksButton.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanLinksButton.js +5 -5
- package/lib/TracingGanttChart/GanttTable/SpanLinksButton.js.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanName.d.ts +3 -3
- package/lib/TracingGanttChart/GanttTable/SpanName.d.ts.map +1 -1
- package/lib/TracingGanttChart/GanttTable/SpanName.js +5 -5
- package/lib/TracingGanttChart/GanttTable/SpanName.js.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/Canvas.d.ts +4 -4
- package/lib/TracingGanttChart/MiniGanttChart/Canvas.d.ts.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/Canvas.js +8 -8
- package/lib/TracingGanttChart/MiniGanttChart/Canvas.js.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.d.ts +4 -4
- package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.d.ts.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.js +4 -4
- package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.js.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/draw.d.ts +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/draw.d.ts.map +1 -1
- package/lib/TracingGanttChart/MiniGanttChart/draw.js +2 -2
- package/lib/TracingGanttChart/MiniGanttChart/draw.js.map +1 -1
- package/lib/TracingGanttChart/Search.d.ts +2 -2
- package/lib/TracingGanttChart/Search.d.ts.map +1 -1
- package/lib/TracingGanttChart/Search.js +7 -7
- package/lib/TracingGanttChart/Search.js.map +1 -1
- package/lib/TracingGanttChart/Ticks.d.ts +3 -3
- package/lib/TracingGanttChart/Ticks.d.ts.map +1 -1
- package/lib/TracingGanttChart/Ticks.js +3 -3
- package/lib/TracingGanttChart/Ticks.js.map +1 -1
- package/lib/TracingGanttChart/TraceHeaderBar.d.ts +3 -3
- package/lib/TracingGanttChart/TraceHeaderBar.d.ts.map +1 -1
- package/lib/TracingGanttChart/TraceHeaderBar.js +6 -6
- package/lib/TracingGanttChart/TraceHeaderBar.js.map +1 -1
- package/lib/TracingGanttChart/TracingGanttChart.d.ts +3 -3
- package/lib/TracingGanttChart/TracingGanttChart.d.ts.map +1 -1
- package/lib/TracingGanttChart/TracingGanttChart.js +13 -11
- package/lib/TracingGanttChart/TracingGanttChart.js.map +1 -1
- package/lib/TracingGanttChart/palette.js +1 -1
- package/lib/TracingGanttChart/palette.js.map +1 -1
- package/lib/TracingGanttChart/trace.d.ts +2 -2
- package/lib/TracingGanttChart/trace.d.ts.map +1 -1
- package/lib/TracingGanttChart/trace.js +1 -1
- package/lib/TracingGanttChart/trace.js.map +1 -1
- package/lib/TracingGanttChart/utils.d.ts +3 -3
- package/lib/TracingGanttChart/utils.d.ts.map +1 -1
- package/lib/TracingGanttChart/utils.js +2 -2
- package/lib/TracingGanttChart/utils.js.map +1 -1
- package/lib/TracingGanttChart.d.ts +3 -3
- package/lib/TracingGanttChart.d.ts.map +1 -1
- package/lib/TracingGanttChart.js +3 -3
- package/lib/TracingGanttChart.js.map +1 -1
- package/lib/TracingGanttChartPanel.d.ts +4 -4
- package/lib/TracingGanttChartPanel.d.ts.map +1 -1
- package/lib/TracingGanttChartPanel.js +4 -4
- package/lib/TracingGanttChartPanel.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/test/convert/jaeger.d.ts +1 -1
- package/lib/test/convert/jaeger.d.ts.map +1 -1
- package/lib/test/convert/jaeger.js.map +1 -1
- package/mf-manifest.json +29 -72
- package/mf-stats.json +29 -80
- package/package.json +10 -10
- package/__mf/js/async/121.1fc97c57.js +0 -2
- package/__mf/js/async/177.27fced63.js +0 -1
- package/__mf/js/async/192.ea308602.js +0 -1
- package/__mf/js/async/193.6692daa9.js +0 -1
- package/__mf/js/async/2.c5f68593.js +0 -1
- package/__mf/js/async/235.4f4ad5f0.js +0 -1
- package/__mf/js/async/274.03fc3289.js +0 -2
- package/__mf/js/async/30.991f7ee4.js +0 -39
- package/__mf/js/async/30.991f7ee4.js.LICENSE.txt +0 -37
- package/__mf/js/async/356.2e3c02c9.js +0 -1
- package/__mf/js/async/392.eb9b3bb9.js +0 -2
- package/__mf/js/async/43.b9d7bc56.js +0 -2
- package/__mf/js/async/43.b9d7bc56.js.LICENSE.txt +0 -24
- package/__mf/js/async/47.514dc87f.js +0 -1
- package/__mf/js/async/470.9743e21d.js +0 -2
- package/__mf/js/async/546.b40699cb.js +0 -24
- package/__mf/js/async/546.b40699cb.js.LICENSE.txt +0 -19
- package/__mf/js/async/570.9d51e826.js +0 -7
- package/__mf/js/async/570.9d51e826.js.LICENSE.txt +0 -39
- package/__mf/js/async/581.aa52d024.js +0 -1
- package/__mf/js/async/587.f49a06d9.js +0 -1
- package/__mf/js/async/588.46394f24.js +0 -1
- package/__mf/js/async/616.09a93b54.js +0 -1
- package/__mf/js/async/71.f0d71a40.js +0 -1
- package/__mf/js/async/873.34370b2c.js +0 -1
- package/__mf/js/async/887.027eb62b.js +0 -110
- package/__mf/js/async/941.3d671d54.js +0 -2
- package/__mf/js/async/968.1ac51448.js +0 -1
- package/__mf/js/async/978.0c50ecf5.js +0 -1
- package/__mf/js/async/__federation_expose_TracingGanttChart.9c074bea.js +0 -1
- package/__mf/js/async/lib-router.5f492283.js +0 -2
- package/lib/cjs/PanelActions.js +0 -88
- package/lib/cjs/TracingGanttChart/DetailPane/Attributes.js +0 -204
- package/lib/cjs/TracingGanttChart/DetailPane/DetailPane.js +0 -129
- package/lib/cjs/TracingGanttChart/DetailPane/SpanEvents.js +0 -113
- package/lib/cjs/TracingGanttChart/DetailPane/SpanLinks.js +0 -72
- package/lib/cjs/TracingGanttChart/GanttTable/GanttTable.js +0 -154
- package/lib/cjs/TracingGanttChart/GanttTable/GanttTableHeader.js +0 -64
- package/lib/cjs/TracingGanttChart/GanttTable/GanttTableProvider.js +0 -60
- package/lib/cjs/TracingGanttChart/GanttTable/GanttTableRow.js +0 -77
- package/lib/cjs/TracingGanttChart/GanttTable/ResizableDivider.js +0 -98
- package/lib/cjs/TracingGanttChart/GanttTable/SpanDuration.js +0 -81
- package/lib/cjs/TracingGanttChart/GanttTable/SpanIndents.js +0 -97
- package/lib/cjs/TracingGanttChart/GanttTable/SpanLinksButton.js +0 -108
- package/lib/cjs/TracingGanttChart/GanttTable/SpanName.js +0 -83
- package/lib/cjs/TracingGanttChart/MiniGanttChart/Canvas.js +0 -256
- package/lib/cjs/TracingGanttChart/MiniGanttChart/MiniGanttChart.js +0 -59
- package/lib/cjs/TracingGanttChart/MiniGanttChart/draw.js +0 -45
- package/lib/cjs/TracingGanttChart/Search.js +0 -154
- package/lib/cjs/TracingGanttChart/Ticks.js +0 -106
- package/lib/cjs/TracingGanttChart/TraceHeaderBar.js +0 -159
- package/lib/cjs/TracingGanttChart/TracingGanttChart.js +0 -122
- package/lib/cjs/TracingGanttChart/palette.js +0 -83
- package/lib/cjs/TracingGanttChart/trace.js +0 -137
- package/lib/cjs/TracingGanttChart/utils.js +0 -117
- package/lib/cjs/TracingGanttChart.js +0 -37
- package/lib/cjs/TracingGanttChartPanel.js +0 -66
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/gantt-chart-model.js +0 -28
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -39
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/test/convert/jaeger.js +0 -86
- /package/__mf/css/async/{570.85c2cbf6.css → 518.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.1fc97c57.js.LICENSE.txt → 121.618b4fb6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.03fc3289.js.LICENSE.txt → 274.6cf6422e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.eb9b3bb9.js.LICENSE.txt → 392.924637be.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{887.027eb62b.js.LICENSE.txt → 436.d35ff1bd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.9743e21d.js.LICENSE.txt → 470.22f77478.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.3d671d54.js.LICENSE.txt → 941.a9b68d98.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.5f492283.js.LICENSE.txt → lib-router.b71f208a.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TracingGanttChart.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PanelPlugin } from '@perses-dev/plugin-system';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/TracingGanttChart.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type { PanelPlugin } from '@perses-dev/plugin-system';\n\nimport type { TracingGanttChartOptions } from './gantt-chart-model';\nimport { createInitialTracingGanttChartOptions } from './gantt-chart-model';\nimport { DownloadTraceAction } from './PanelActions';\nimport type { TracingGanttChartPanelProps } from './TracingGanttChartPanel';\nimport { TracingGanttChartPanel } from './TracingGanttChartPanel';\n\nexport const TracingGanttChart: PanelPlugin<TracingGanttChartOptions, TracingGanttChartPanelProps> = {\n PanelComponent: TracingGanttChartPanel,\n supportedQueryTypes: ['TraceQuery'],\n createInitialOptions: createInitialTracingGanttChartOptions,\n actions: [{ component: DownloadTraceAction }],\n};\n"],"names":["createInitialTracingGanttChartOptions","DownloadTraceAction","TracingGanttChartPanel","TracingGanttChart","PanelComponent","supportedQueryTypes","createInitialOptions","actions","component"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAKjC,SAASA,qCAAqC,QAAQ,yBAAsB;AAC5E,SAASC,mBAAmB,QAAQ,oBAAiB;AAErD,SAASC,sBAAsB,QAAQ,8BAA2B;AAElE,OAAO,MAAMC,oBAAwF;IACnGC,gBAAgBF;IAChBG,qBAAqB;QAAC;KAAa;IACnCC,sBAAsBN;IACtBO,SAAS;QAAC;YAAEC,WAAWP;QAAoB;KAAE;AAC/C,EAAE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PanelProps } from '@perses-dev/plugin-system';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { TracingGanttChartOptions } from './gantt-chart-model';
|
|
1
|
+
import type { PanelProps } from '@perses-dev/plugin-system';
|
|
2
|
+
import type { TraceData } from '@perses-dev/spec';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import type { TracingGanttChartOptions } from './gantt-chart-model';
|
|
5
5
|
export type TracingGanttChartPanelProps = PanelProps<TracingGanttChartOptions, TraceData>;
|
|
6
6
|
export declare function TracingGanttChartPanel(props: TracingGanttChartPanelProps): ReactElement;
|
|
7
7
|
//# sourceMappingURL=TracingGanttChartPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TracingGanttChartPanel.d.ts","sourceRoot":"","sources":["../../src/TracingGanttChartPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TracingGanttChartPanel.d.ts","sourceRoot":"","sources":["../../src/TracingGanttChartPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAe,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGjF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;AAE1F,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,YAAY,CAoCvF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
// Copyright The Perses Authors
|
|
2
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -10,10 +11,9 @@
|
|
|
10
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
12
|
// See the License for the specific language governing permissions and
|
|
12
13
|
// limitations under the License.
|
|
13
|
-
import {
|
|
14
|
-
import { NoDataOverlay, TextOverlay, useChartsTheme } from
|
|
15
|
-
import {
|
|
16
|
-
import { TracingGanttChart } from './TracingGanttChart/TracingGanttChart';
|
|
14
|
+
import { Box } from "@mui/material";
|
|
15
|
+
import { NoDataOverlay, TextOverlay, useChartsTheme } from "@perses-dev/components";
|
|
16
|
+
import { TracingGanttChart } from "./TracingGanttChart/TracingGanttChart.js";
|
|
17
17
|
export function TracingGanttChartPanel(props) {
|
|
18
18
|
const { spec, queryResults } = props;
|
|
19
19
|
const chartsTheme = useChartsTheme();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TracingGanttChartPanel.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/TracingGanttChartPanel.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Box } from '@mui/material';\nimport { NoDataOverlay, TextOverlay, useChartsTheme } from '@perses-dev/components';\nimport type { PanelProps } from '@perses-dev/plugin-system';\nimport type { TraceData } from '@perses-dev/spec';\nimport type { ReactElement } from 'react';\n\nimport type { CustomLinks, TracingGanttChartOptions } from './gantt-chart-model';\nimport { TracingGanttChart } from './TracingGanttChart/TracingGanttChart';\n\nexport type TracingGanttChartPanelProps = PanelProps<TracingGanttChartOptions, TraceData>;\n\nexport function TracingGanttChartPanel(props: TracingGanttChartPanelProps): ReactElement {\n const { spec, queryResults } = props;\n const chartsTheme = useChartsTheme();\n const contentPadding = chartsTheme.container.padding.default;\n\n if (queryResults.length > 1) {\n return <TextOverlay message=\"This panel does not support more than one query.\" />;\n }\n\n if (queryResults[0]?.data.searchResult) {\n return (\n <TextOverlay message=\"This panel does not support displaying trace search results. Please enter a trace id in the query field instead.\" />\n );\n }\n\n const trace = queryResults[0]?.data.trace;\n if (!trace) {\n return <NoDataOverlay resource=\"trace\" />;\n }\n\n const pluginSpec = queryResults[0]?.definition.spec.plugin.spec as { datasource?: { name?: string } } | undefined;\n const datasourceName = pluginSpec?.datasource?.name;\n const customLinks: CustomLinks | undefined = spec.links\n ? {\n variables: {\n datasourceName: datasourceName ?? '',\n },\n links: spec.links,\n }\n : undefined;\n\n return (\n <Box sx={{ height: '100%', padding: `${contentPadding}px` }}>\n <TracingGanttChart options={spec} customLinks={customLinks} trace={trace} />\n </Box>\n );\n}\n"],"names":["Box","NoDataOverlay","TextOverlay","useChartsTheme","TracingGanttChart","TracingGanttChartPanel","props","spec","queryResults","chartsTheme","contentPadding","container","padding","default","length","message","data","searchResult","trace","resource","pluginSpec","definition","plugin","datasourceName","datasource","name","customLinks","links","variables","undefined","sx","height","options"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,GAAG,QAAQ,gBAAgB;AACpC,SAASC,aAAa,EAAEC,WAAW,EAAEC,cAAc,QAAQ,yBAAyB;AAMpF,SAASC,iBAAiB,QAAQ,2CAAwC;AAI1E,OAAO,SAASC,uBAAuBC,KAAkC;IACvE,MAAM,EAAEC,IAAI,EAAEC,YAAY,EAAE,GAAGF;IAC/B,MAAMG,cAAcN;IACpB,MAAMO,iBAAiBD,YAAYE,SAAS,CAACC,OAAO,CAACC,OAAO;IAE5D,IAAIL,aAAaM,MAAM,GAAG,GAAG;QAC3B,qBAAO,KAACZ;YAAYa,SAAQ;;IAC9B;IAEA,IAAIP,YAAY,CAAC,EAAE,EAAEQ,KAAKC,cAAc;QACtC,qBACE,KAACf;YAAYa,SAAQ;;IAEzB;IAEA,MAAMG,QAAQV,YAAY,CAAC,EAAE,EAAEQ,KAAKE;IACpC,IAAI,CAACA,OAAO;QACV,qBAAO,KAACjB;YAAckB,UAAS;;IACjC;IAEA,MAAMC,aAAaZ,YAAY,CAAC,EAAE,EAAEa,WAAWd,KAAKe,OAAOf;IAC3D,MAAMgB,iBAAiBH,YAAYI,YAAYC;IAC/C,MAAMC,cAAuCnB,KAAKoB,KAAK,GACnD;QACEC,WAAW;YACTL,gBAAgBA,kBAAkB;QACpC;QACAI,OAAOpB,KAAKoB,KAAK;IACnB,IACAE;IAEJ,qBACE,KAAC7B;QAAI8B,IAAI;YAAEC,QAAQ;YAAQnB,SAAS,GAAGF,eAAe,EAAE,CAAC;QAAC;kBACxD,cAAA,KAACN;YAAkB4B,SAASzB;YAAMmB,aAAaA;YAAaR,OAAOA;;;AAGzE"}
|
package/lib/bootstrap.js
CHANGED
|
@@ -11,8 +11,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
import React from
|
|
15
|
-
import ReactDOM from
|
|
14
|
+
import React from "react";
|
|
15
|
+
import ReactDOM from "react-dom/client";
|
|
16
16
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
17
17
|
root.render(/*#__PURE__*/ _jsx(React.StrictMode, {}));
|
|
18
18
|
|
package/lib/getPluginModule.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAIxF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
|
package/lib/getPluginModule.js
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import packageJson from
|
|
13
|
+
import packageJson from "../package.json" with {
|
|
14
|
+
type: 'json'
|
|
15
|
+
};
|
|
14
16
|
/**
|
|
15
17
|
* Returns the plugin module information from package.json
|
|
16
18
|
*/ export function getPluginModule() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;
|
|
1
|
+
{"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\n\nimport packageJson from '../package.json' with { type: 'json' };\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","type","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAOA,iBAAiB,uBAAuB;IAAEC,MAAM;AAAO,EAAE;AAEhE;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGL;IAClC,OAAO;QACLM,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
|
package/lib/index-federation.js
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import(
|
|
13
|
+
import("./bootstrap.js");
|
|
14
14
|
|
|
15
15
|
//# sourceMappingURL=index-federation.js.map
|
package/lib/index.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
export * from
|
|
14
|
-
export { getPluginModule } from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
13
|
+
export * from "./gantt-chart-model.js";
|
|
14
|
+
export { getPluginModule } from "./getPluginModule.js";
|
|
15
|
+
export * from "./TracingGanttChart.js";
|
|
16
|
+
export * from "./TracingGanttChartPanel.js";
|
|
17
17
|
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './gantt-chart-model';\nexport { getPluginModule } from './getPluginModule';\nexport * from './TracingGanttChart';\nexport * from './TracingGanttChartPanel';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './gantt-chart-model';\nexport { getPluginModule } from './getPluginModule';\nexport * from './TracingGanttChart';\nexport * from './TracingGanttChartPanel';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,yBAAsB;AACpC,SAASA,eAAe,QAAQ,uBAAoB;AACpD,cAAc,yBAAsB;AACpC,cAAc,8BAA2B"}
|
package/lib/setup-tests.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
2
2
|
//# sourceMappingURL=setup-tests.d.ts.map
|
package/lib/setup-tests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,kCAAkC,CAAC"}
|
package/lib/setup-tests.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import
|
|
13
|
+
import "@testing-library/jest-dom/vitest";
|
|
14
14
|
// Always mock e-charts during tests since we don't have a proper canvas in jsdom
|
|
15
|
-
|
|
15
|
+
vi.mock('echarts/core');
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=setup-tests.js.map
|
package/lib/setup-tests.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport '@testing-library/jest-dom';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\
|
|
1
|
+
{"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport '@testing-library/jest-dom/vitest';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\nvi.mock('echarts/core');\n"],"names":["vi","mock"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,mCAAmC;AAE1C,iFAAiF;AACjFA,GAAGC,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jaeger.d.ts","sourceRoot":"","sources":["../../../../src/test/convert/jaeger.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,WAAW,MAAM,gEAAgE,CAAC;
|
|
1
|
+
{"version":3,"file":"jaeger.d.ts","sourceRoot":"","sources":["../../../../src/test/convert/jaeger.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,WAAW,MAAM,gEAAgE,CAAC;AAInG,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,IAAI;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IAEjB,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,OAAO;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,GAAG,EAAE,CAAC;CACb;AAED,KAAK,GAAG,GACJ;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,UAAU,CAIlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/test/convert/jaeger.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport * as otlpcommonv1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/common/v1/common';\nimport * as otlpresourcev1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/resource/v1/resource';\nimport * as otlptracev1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/trace/v1/trace';\n\n// the following Jaeger data types and parsing function should eventually be moved to a Jaeger data source plugin\n\nexport interface JaegerTrace {\n traceID: string;\n spans: Span[];\n processes: unknown;\n warnings: unknown;\n}\n\ninterface Span {\n traceID: string;\n spanID: string;\n hasChildren: boolean;\n childSpanIds: string[];\n depth: number;\n processID: string;\n process: Process;\n\n operationName: string;\n /** start time in microseconds */\n startTime: number;\n relativeStartTime: number;\n duration: number;\n tags: Tag[];\n references: unknown;\n logs: unknown;\n warnings: unknown;\n}\n\ninterface Process {\n serviceName: string;\n tags: Tag[];\n}\n\ntype Tag =\n | {\n type: 'string';\n key: string;\n value: string;\n }\n | {\n type: 'int64';\n key: string;\n value: number;\n };\n\nexport function jaegerTraceToOTLP(jaegerTrace: JaegerTrace): otlptracev1.TracesData {\n return {\n resourceSpans: jaegerTrace.spans.map(buildResourceSpan),\n };\n}\n\nfunction buildResourceSpan(span: Span): otlptracev1.ResourceSpan {\n return {\n resource: buildResource(span.process),\n scopeSpans: [\n {\n scope: {\n name: '',\n },\n spans: [\n {\n traceId: span.traceID,\n spanId: span.spanID,\n name: span.operationName,\n kind: '',\n startTimeUnixNano: (span.startTime * 1000).toString(),\n endTimeUnixNano: ((span.startTime + span.duration) * 1000).toString(),\n attributes: span.tags.map(buildKeyValue),\n events: [],\n status: {},\n },\n ],\n },\n ],\n };\n}\n\nfunction buildResource(process: Process): otlpresourcev1.Resource {\n return {\n attributes: [\n { key: 'service.name', value: { stringValue: process.serviceName } },\n ...process.tags.map(buildKeyValue),\n ],\n };\n}\n\nfunction buildKeyValue(tag: Tag): otlpcommonv1.KeyValue {\n return { key: tag.key, value: buildAnyValue(tag) };\n}\n\nfunction buildAnyValue(tags: Tag): otlpcommonv1.AnyValue {\n switch (tags.type) {\n case 'string':\n return { stringValue: tags.value };\n case 'int64':\n return { intValue: tags.value.toString() };\n default:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n throw new Error(`unknown jaeger tag type ${(tags as any).type}`);\n }\n}\n"],"names":["jaegerTraceToOTLP","jaegerTrace","resourceSpans","spans","map","buildResourceSpan","span","resource","buildResource","process","scopeSpans","scope","name","traceId","traceID","spanId","spanID","operationName","kind","startTimeUnixNano","startTime","toString","endTimeUnixNano","duration","attributes","tags","buildKeyValue","events","status","key","value","stringValue","serviceName","tag","buildAnyValue","type","intValue","Error"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAoDjC,OAAO,SAASA,kBAAkBC,WAAwB;IACxD,OAAO;QACLC,eAAeD,YAAYE,KAAK,CAACC,GAAG,CAACC;IACvC;AACF;AAEA,SAASA,kBAAkBC,IAAU;IACnC,OAAO;QACLC,UAAUC,cAAcF,KAAKG,OAAO;QACpCC,YAAY;YACV;gBACEC,OAAO;oBACLC,MAAM;gBACR;gBACAT,OAAO;oBACL;wBACEU,SAASP,KAAKQ,OAAO;wBACrBC,QAAQT,KAAKU,MAAM;wBACnBJ,MAAMN,KAAKW,aAAa;wBACxBC,MAAM;wBACNC,mBAAmB,AAACb,CAAAA,KAAKc,SAAS,GAAG,IAAG,EAAGC,QAAQ;wBACnDC,iBAAiB,AAAC,CAAA,AAAChB,CAAAA,KAAKc,SAAS,GAAGd,KAAKiB,QAAQ,AAAD,IAAK,IAAG,EAAGF,QAAQ;wBACnEG,YAAYlB,KAAKmB,IAAI,CAACrB,GAAG,CAACsB;wBAC1BC,QAAQ,EAAE;wBACVC,QAAQ,CAAC;oBACX;iBACD;YACH;SACD;IACH;AACF;AAEA,SAASpB,cAAcC,OAAgB;IACrC,OAAO;QACLe,YAAY;YACV;gBAAEK,KAAK;gBAAgBC,OAAO;oBAAEC,aAAatB,QAAQuB,WAAW;gBAAC;YAAE;eAChEvB,QAAQgB,IAAI,CAACrB,GAAG,CAACsB;SACrB;IACH;AACF;AAEA,SAASA,cAAcO,GAAQ;IAC7B,OAAO;QAAEJ,KAAKI,IAAIJ,GAAG;QAAEC,OAAOI,cAAcD;IAAK;AACnD;AAEA,SAASC,cAAcT,IAAS;IAC9B,OAAQA,KAAKU,IAAI;QACf,KAAK;YACH,OAAO;gBAAEJ,aAAaN,KAAKK,KAAK;YAAC;QACnC,KAAK;YACH,OAAO;gBAAEM,UAAUX,KAAKK,KAAK,CAACT,QAAQ;YAAG;QAC3C;YACE,8DAA8D;YAC9D,MAAM,IAAIgB,MAAM,CAAC,wBAAwB,EAAE,AAACZ,KAAaU,IAAI,EAAE;IACnE;AACF"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/test/convert/jaeger.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type * as otlpcommonv1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/common/v1/common';\nimport type * as otlpresourcev1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/resource/v1/resource';\nimport type * as otlptracev1 from '@perses-dev/spec/dist/dashboard/query-type/otlp/trace/v1/trace';\n\n// the following Jaeger data types and parsing function should eventually be moved to a Jaeger data source plugin\n\nexport interface JaegerTrace {\n traceID: string;\n spans: Span[];\n processes: unknown;\n warnings: unknown;\n}\n\ninterface Span {\n traceID: string;\n spanID: string;\n hasChildren: boolean;\n childSpanIds: string[];\n depth: number;\n processID: string;\n process: Process;\n\n operationName: string;\n /** start time in microseconds */\n startTime: number;\n relativeStartTime: number;\n duration: number;\n tags: Tag[];\n references: unknown;\n logs: unknown;\n warnings: unknown;\n}\n\ninterface Process {\n serviceName: string;\n tags: Tag[];\n}\n\ntype Tag =\n | {\n type: 'string';\n key: string;\n value: string;\n }\n | {\n type: 'int64';\n key: string;\n value: number;\n };\n\nexport function jaegerTraceToOTLP(jaegerTrace: JaegerTrace): otlptracev1.TracesData {\n return {\n resourceSpans: jaegerTrace.spans.map(buildResourceSpan),\n };\n}\n\nfunction buildResourceSpan(span: Span): otlptracev1.ResourceSpan {\n return {\n resource: buildResource(span.process),\n scopeSpans: [\n {\n scope: {\n name: '',\n },\n spans: [\n {\n traceId: span.traceID,\n spanId: span.spanID,\n name: span.operationName,\n kind: '',\n startTimeUnixNano: (span.startTime * 1000).toString(),\n endTimeUnixNano: ((span.startTime + span.duration) * 1000).toString(),\n attributes: span.tags.map(buildKeyValue),\n events: [],\n status: {},\n },\n ],\n },\n ],\n };\n}\n\nfunction buildResource(process: Process): otlpresourcev1.Resource {\n return {\n attributes: [\n { key: 'service.name', value: { stringValue: process.serviceName } },\n ...process.tags.map(buildKeyValue),\n ],\n };\n}\n\nfunction buildKeyValue(tag: Tag): otlpcommonv1.KeyValue {\n return { key: tag.key, value: buildAnyValue(tag) };\n}\n\nfunction buildAnyValue(tags: Tag): otlpcommonv1.AnyValue {\n switch (tags.type) {\n case 'string':\n return { stringValue: tags.value };\n case 'int64':\n return { intValue: tags.value.toString() };\n default:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n throw new Error(`unknown jaeger tag type ${(tags as any).type}`);\n }\n}\n"],"names":["jaegerTraceToOTLP","jaegerTrace","resourceSpans","spans","map","buildResourceSpan","span","resource","buildResource","process","scopeSpans","scope","name","traceId","traceID","spanId","spanID","operationName","kind","startTimeUnixNano","startTime","toString","endTimeUnixNano","duration","attributes","tags","buildKeyValue","events","status","key","value","stringValue","serviceName","tag","buildAnyValue","type","intValue","Error"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAoDjC,OAAO,SAASA,kBAAkBC,WAAwB;IACxD,OAAO;QACLC,eAAeD,YAAYE,KAAK,CAACC,GAAG,CAACC;IACvC;AACF;AAEA,SAASA,kBAAkBC,IAAU;IACnC,OAAO;QACLC,UAAUC,cAAcF,KAAKG,OAAO;QACpCC,YAAY;YACV;gBACEC,OAAO;oBACLC,MAAM;gBACR;gBACAT,OAAO;oBACL;wBACEU,SAASP,KAAKQ,OAAO;wBACrBC,QAAQT,KAAKU,MAAM;wBACnBJ,MAAMN,KAAKW,aAAa;wBACxBC,MAAM;wBACNC,mBAAmB,AAACb,CAAAA,KAAKc,SAAS,GAAG,IAAG,EAAGC,QAAQ;wBACnDC,iBAAiB,AAAC,CAAA,AAAChB,CAAAA,KAAKc,SAAS,GAAGd,KAAKiB,QAAQ,AAAD,IAAK,IAAG,EAAGF,QAAQ;wBACnEG,YAAYlB,KAAKmB,IAAI,CAACrB,GAAG,CAACsB;wBAC1BC,QAAQ,EAAE;wBACVC,QAAQ,CAAC;oBACX;iBACD;YACH;SACD;IACH;AACF;AAEA,SAASpB,cAAcC,OAAgB;IACrC,OAAO;QACLe,YAAY;YACV;gBAAEK,KAAK;gBAAgBC,OAAO;oBAAEC,aAAatB,QAAQuB,WAAW;gBAAC;YAAE;eAChEvB,QAAQgB,IAAI,CAACrB,GAAG,CAACsB;SACrB;IACH;AACF;AAEA,SAASA,cAAcO,GAAQ;IAC7B,OAAO;QAAEJ,KAAKI,IAAIJ,GAAG;QAAEC,OAAOI,cAAcD;IAAK;AACnD;AAEA,SAASC,cAAcT,IAAS;IAC9B,OAAQA,KAAKU,IAAI;QACf,KAAK;YACH,OAAO;gBAAEJ,aAAaN,KAAKK,KAAK;YAAC;QACnC,KAAK;YACH,OAAO;gBAAEM,UAAUX,KAAKK,KAAK,CAACT,QAAQ;YAAG;QAC3C;YACE,8DAA8D;YAC9D,MAAM,IAAIgB,MAAM,CAAC,wBAAwB,EAAE,AAACZ,KAAaU,IAAI,EAAE;IACnE;AACF"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "TracingGanttChart",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.14.0-beta.1",
|
|
9
9
|
"buildName": "@perses-dev/tracing-gantt-chart-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/TracingGanttChart.
|
|
12
|
+
"name": "__mf/js/TracingGanttChart.5745bc80.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "TracingGanttChart_0_14_0_beta_1",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TracingGanttChart/\"; }"
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/TracingGanttChart~0.14.0-beta.1/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"js": {
|
|
35
35
|
"async": [],
|
|
36
36
|
"sync": [
|
|
37
|
-
"__mf/js/async/274.
|
|
37
|
+
"__mf/js/async/274.6cf6422e.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"css": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
57
|
+
"__mf/js/async/235.19919f16.js",
|
|
58
|
+
"__mf/js/async/616.7443c7ea.js"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"css": {
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"js": {
|
|
76
76
|
"async": [],
|
|
77
77
|
"sync": [
|
|
78
|
-
"__mf/js/async/587.
|
|
79
|
-
"__mf/js/async/968.
|
|
78
|
+
"__mf/js/async/587.05c4c4aa.js",
|
|
79
|
+
"__mf/js/async/968.ad5c8bce.js"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"css": {
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
{
|
|
90
90
|
"id": "TracingGanttChart:@perses-dev/components",
|
|
91
91
|
"name": "@perses-dev/components",
|
|
92
|
-
"version": "0.
|
|
92
|
+
"version": "0.55.0-beta.6",
|
|
93
93
|
"singleton": true,
|
|
94
|
-
"requiredVersion": "^0.
|
|
94
|
+
"requiredVersion": "^0.55.0-beta.6",
|
|
95
95
|
"assets": {
|
|
96
96
|
"js": {
|
|
97
97
|
"async": [],
|
|
98
98
|
"sync": [
|
|
99
|
-
"__mf/js/async/
|
|
99
|
+
"__mf/js/async/518.0bb3a33a.js"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"css": {
|
|
103
103
|
"async": [],
|
|
104
104
|
"sync": [
|
|
105
|
-
"__mf/css/async/
|
|
105
|
+
"__mf/css/async/518.85c2cbf6.css"
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
{
|
|
112
112
|
"id": "TracingGanttChart:@perses-dev/plugin-system",
|
|
113
113
|
"name": "@perses-dev/plugin-system",
|
|
114
|
-
"version": "0.
|
|
114
|
+
"version": "0.55.0-beta.6",
|
|
115
115
|
"singleton": true,
|
|
116
|
-
"requiredVersion": "^0.
|
|
116
|
+
"requiredVersion": "^0.55.0-beta.6",
|
|
117
117
|
"assets": {
|
|
118
118
|
"js": {
|
|
119
119
|
"async": [],
|
|
120
120
|
"sync": [
|
|
121
|
-
"__mf/js/async/
|
|
121
|
+
"__mf/js/async/354.f46df209.js"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"css": {
|
|
@@ -138,27 +138,7 @@
|
|
|
138
138
|
"js": {
|
|
139
139
|
"async": [],
|
|
140
140
|
"sync": [
|
|
141
|
-
"__mf/js/async/192.
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
"css": {
|
|
145
|
-
"async": [],
|
|
146
|
-
"sync": []
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"fallback": ""
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"id": "TracingGanttChart:echarts",
|
|
153
|
-
"name": "echarts",
|
|
154
|
-
"version": "5.5.0",
|
|
155
|
-
"singleton": true,
|
|
156
|
-
"requiredVersion": "^undefined",
|
|
157
|
-
"assets": {
|
|
158
|
-
"js": {
|
|
159
|
-
"async": [],
|
|
160
|
-
"sync": [
|
|
161
|
-
"__mf/js/async/873.34370b2c.js"
|
|
141
|
+
"__mf/js/async/192.c6c201e3.js"
|
|
162
142
|
]
|
|
163
143
|
},
|
|
164
144
|
"css": {
|
|
@@ -178,7 +158,7 @@
|
|
|
178
158
|
"js": {
|
|
179
159
|
"async": [],
|
|
180
160
|
"sync": [
|
|
181
|
-
"__mf/js/async/392.
|
|
161
|
+
"__mf/js/async/392.924637be.js"
|
|
182
162
|
]
|
|
183
163
|
},
|
|
184
164
|
"css": {
|
|
@@ -198,7 +178,7 @@
|
|
|
198
178
|
"js": {
|
|
199
179
|
"async": [],
|
|
200
180
|
"sync": [
|
|
201
|
-
"__mf/js/async/470.
|
|
181
|
+
"__mf/js/async/470.22f77478.js"
|
|
202
182
|
]
|
|
203
183
|
},
|
|
204
184
|
"css": {
|
|
@@ -218,27 +198,7 @@
|
|
|
218
198
|
"js": {
|
|
219
199
|
"async": [],
|
|
220
200
|
"sync": [
|
|
221
|
-
"__mf/js/async/121.
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
"css": {
|
|
225
|
-
"async": [],
|
|
226
|
-
"sync": []
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"fallback": ""
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"id": "TracingGanttChart:date-fns-tz",
|
|
233
|
-
"name": "date-fns-tz",
|
|
234
|
-
"version": "3.2.0",
|
|
235
|
-
"singleton": true,
|
|
236
|
-
"requiredVersion": "^3.2.0",
|
|
237
|
-
"assets": {
|
|
238
|
-
"js": {
|
|
239
|
-
"async": [],
|
|
240
|
-
"sync": [
|
|
241
|
-
"__mf/js/async/978.0c50ecf5.js"
|
|
201
|
+
"__mf/js/async/121.618b4fb6.js"
|
|
242
202
|
]
|
|
243
203
|
},
|
|
244
204
|
"css": {
|
|
@@ -257,25 +217,22 @@
|
|
|
257
217
|
"assets": {
|
|
258
218
|
"js": {
|
|
259
219
|
"sync": [
|
|
260
|
-
"__mf/js/async/
|
|
261
|
-
"__mf/js/async/
|
|
262
|
-
"__mf/js/async/
|
|
263
|
-
"__mf/js/async/__federation_expose_TracingGanttChart.
|
|
220
|
+
"__mf/js/async/436.d35ff1bd.js",
|
|
221
|
+
"__mf/js/async/247.ca32b71b.js",
|
|
222
|
+
"__mf/js/async/672.2a876b27.js",
|
|
223
|
+
"__mf/js/async/__federation_expose_TracingGanttChart.bf18fa45.js"
|
|
264
224
|
],
|
|
265
225
|
"async": [
|
|
266
|
-
"__mf/js/async/
|
|
267
|
-
"__mf/js/async/
|
|
268
|
-
"__mf/js/async/
|
|
269
|
-
"__mf/js/async/
|
|
270
|
-
"__mf/js/async/lib-router.5f492283.js",
|
|
271
|
-
"__mf/js/async/356.2e3c02c9.js",
|
|
272
|
-
"__mf/js/async/177.27fced63.js"
|
|
226
|
+
"__mf/js/async/665.70388bbd.js",
|
|
227
|
+
"__mf/js/async/663.94619f01.js",
|
|
228
|
+
"__mf/js/async/lib-router.b71f208a.js",
|
|
229
|
+
"__mf/js/async/356.318657d1.js"
|
|
273
230
|
]
|
|
274
231
|
},
|
|
275
232
|
"css": {
|
|
276
233
|
"sync": [],
|
|
277
234
|
"async": [
|
|
278
|
-
"__mf/css/async/
|
|
235
|
+
"__mf/css/async/518.85c2cbf6.css"
|
|
279
236
|
]
|
|
280
237
|
}
|
|
281
238
|
},
|