@perses-dev/tempo-plugin 0.50.2 → 0.51.0-beta.2
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/LICENSE +183 -183
- package/README.md +41 -0
- package/__mf/css/async/1580.c10cf504.css +1 -0
- package/__mf/css/async/2341.c10cf504.css +1 -0
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/1096.3bbe4065.js +5 -0
- package/__mf/js/Tempo.a8981810.js +5 -0
- package/__mf/js/async/1465.21c847e0.js +1 -0
- package/__mf/js/async/1540.089c4f28.js +74 -0
- package/__mf/js/async/1580.a18202be.js +2 -0
- package/__mf/js/async/1580.a18202be.js.LICENSE.txt +9 -0
- package/__mf/js/async/1620.45989def.js +2 -0
- package/__mf/js/async/1620.45989def.js.LICENSE.txt +9 -0
- package/__mf/js/async/1964.75933dd4.js +2 -0
- package/__mf/js/async/1964.75933dd4.js.LICENSE.txt +9 -0
- package/__mf/js/async/2114.c74c6b40.js +2 -0
- package/__mf/js/async/2114.c74c6b40.js.LICENSE.txt +9 -0
- package/__mf/js/async/2292.93559ffc.js +2 -0
- package/__mf/js/async/2292.93559ffc.js.LICENSE.txt +24 -0
- package/__mf/js/async/232.90224262.js +1 -0
- package/__mf/js/async/3224.8d499a63.js +1 -0
- package/__mf/js/async/3498.4c9a082f.js +73 -0
- package/__mf/js/async/3498.4c9a082f.js.LICENSE.txt +19 -0
- package/__mf/js/async/3539.e15e8cee.js +1 -0
- package/__mf/js/async/3847.bf6978f1.js +2 -0
- package/__mf/js/async/3847.bf6978f1.js.LICENSE.txt +9 -0
- package/__mf/js/async/3960.2228bf7e.js +2 -0
- package/__mf/js/async/3960.2228bf7e.js.LICENSE.txt +8 -0
- package/__mf/js/async/4075.4c40db9f.js +1 -0
- package/__mf/js/async/4238.db631f1f.js +1 -0
- package/__mf/js/async/4289.5e2073e0.js +1 -0
- package/__mf/js/async/5066.46d1b7c5.js +29 -0
- package/__mf/js/async/5066.46d1b7c5.js.LICENSE.txt +59 -0
- package/__mf/js/async/5214.fb1215df.js +1 -0
- package/__mf/js/async/5220.80e3b05e.js +10 -0
- package/__mf/js/async/5220.80e3b05e.js.LICENSE.txt +17 -0
- package/__mf/js/async/5409.446b7e6f.js +1 -0
- package/__mf/js/async/5790.949d8d1c.js +1 -0
- package/__mf/js/async/5981.4700ddf6.js +2 -0
- package/__mf/js/async/5981.4700ddf6.js.LICENSE.txt +8 -0
- package/__mf/js/async/6047.665e5323.js +28 -0
- package/__mf/js/async/6292.2481b399.js +1 -0
- package/__mf/js/async/6333.0a267ee3.js +2 -0
- package/__mf/js/async/6333.0a267ee3.js.LICENSE.txt +9 -0
- package/__mf/js/async/6374.b59f6408.js +1 -0
- package/__mf/js/async/6377.f9347b2d.js +2 -0
- package/__mf/js/async/6377.f9347b2d.js.LICENSE.txt +32 -0
- package/__mf/js/async/6770.4b9911ea.js +1 -0
- package/__mf/js/async/694.91676c53.js +1 -0
- package/__mf/js/async/7376.a69c2e5a.js +1 -0
- package/__mf/js/async/738.2cdddba7.js +1 -0
- package/__mf/js/async/76.be29ee59.js +1 -0
- package/__mf/js/async/7740.1ecb3732.js +1 -0
- package/__mf/js/async/7748.883f23aa.js +38 -0
- package/__mf/js/async/7786.6b891ba5.js +1 -0
- package/__mf/js/async/8488.d3005164.js +1 -0
- package/__mf/js/async/8597.07c3a890.js +1 -0
- package/__mf/js/async/8930.ae855fbe.js +1 -0
- package/__mf/js/async/9173.83562213.js +2 -0
- package/__mf/js/async/9173.83562213.js.LICENSE.txt +19 -0
- package/__mf/js/async/9478.57f45cd9.js +2 -0
- package/__mf/js/async/9478.57f45cd9.js.LICENSE.txt +9 -0
- package/__mf/js/async/9793.4e26e34d.js +2 -0
- package/__mf/js/async/9793.4e26e34d.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_TempoDatasource.8911fb14.js +2 -0
- package/__mf/js/async/__federation_expose_TempoDatasource.8911fb14.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_TempoExplorer.da1cd27d.js +2 -0
- package/__mf/js/async/__federation_expose_TempoExplorer.da1cd27d.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_TempoTraceQuery.fbc781c3.js +1 -0
- package/__mf/js/main.a9148968.js +1 -0
- package/lib/bootstrap.d.ts +2 -0
- package/lib/bootstrap.d.ts.map +1 -0
- package/{dist/model/api-types.js → lib/bootstrap.js} +7 -7
- package/lib/bootstrap.js.map +1 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/{dist → lib}/cjs/components/TraceQLEditor.js +2 -3
- package/{dist → lib}/cjs/components/complete.js +11 -18
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/explore/TempoExplorer.js +168 -0
- package/lib/cjs/explore/index.js +18 -0
- package/lib/cjs/getPluginModule.js +27 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +28 -0
- package/lib/cjs/model/api-types.js +16 -0
- package/{dist → lib}/cjs/model/index.js +1 -1
- package/{dist → lib}/cjs/model/tempo-client.js +12 -12
- package/{dist → lib}/cjs/model/tempo-selectors.js +1 -1
- package/{dist → lib}/cjs/model/trace-query-model.js +1 -1
- package/lib/cjs/plugins/TempoDatasourceEditor.js +70 -0
- package/lib/cjs/plugins/index.js +21 -0
- package/{dist → lib}/cjs/plugins/tempo-datasource-types.js +1 -1
- package/{dist → lib}/cjs/plugins/tempo-datasource.js +10 -10
- package/{dist → lib}/cjs/plugins/tempo-trace-query/TempoTraceQuery.js +1 -1
- package/{dist → lib}/cjs/plugins/tempo-trace-query/TempoTraceQueryEditor.js +12 -7
- package/{dist → lib}/cjs/plugins/tempo-trace-query/get-trace-data.js +7 -88
- package/lib/cjs/plugins/tempo-trace-query/index.js +21 -0
- package/{dist → lib}/cjs/plugins/tempo-trace-query/query-editor-model.js +1 -1
- package/lib/cjs/setup-tests.js +19 -0
- package/{dist → lib}/cjs/test/index.js +1 -1
- package/{dist → lib}/cjs/test/mock-data.js +1 -182
- package/{dist → lib}/cjs/test/setup-tests.js +1 -1
- package/lib/components/TraceQLEditor.d.ts.map +1 -0
- package/{dist → lib}/components/TraceQLEditor.js +2 -3
- package/lib/components/TraceQLEditor.js.map +1 -0
- package/lib/components/TraceQLExtension.d.ts.map +1 -0
- package/lib/components/TraceQLExtension.js.map +1 -0
- package/lib/components/complete.d.ts.map +1 -0
- package/{dist → lib}/components/complete.js +11 -18
- package/lib/components/complete.js.map +1 -0
- package/lib/components/highlight.d.ts.map +1 -0
- package/lib/components/highlight.js.map +1 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.js.map +1 -0
- package/lib/explore/TempoExplorer.d.ts +3 -0
- package/lib/explore/TempoExplorer.d.ts.map +1 -0
- package/lib/explore/TempoExplorer.js +160 -0
- package/lib/explore/TempoExplorer.js.map +1 -0
- package/lib/explore/index.d.ts +2 -0
- package/lib/explore/index.d.ts.map +1 -0
- package/lib/explore/index.js +3 -0
- package/lib/explore/index.js.map +1 -0
- package/lib/getPluginModule.d.ts +6 -0
- package/lib/getPluginModule.d.ts.map +1 -0
- package/lib/getPluginModule.js +16 -0
- package/lib/getPluginModule.js.map +1 -0
- package/lib/index-federation.d.ts +1 -0
- package/lib/index-federation.d.ts.map +1 -0
- package/lib/index-federation.js +15 -0
- package/{dist/components/index.js.map → lib/index-federation.js.map} +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/{dist → lib}/model/api-types.d.ts +3 -58
- package/lib/model/api-types.d.ts.map +1 -0
- package/lib/model/api-types.js +15 -0
- package/lib/model/api-types.js.map +1 -0
- package/lib/model/index.d.ts.map +1 -0
- package/{dist → lib}/model/index.js +1 -1
- package/lib/model/index.js.map +1 -0
- package/{dist → lib}/model/tempo-client.d.ts +1 -1
- package/lib/model/tempo-client.d.ts.map +1 -0
- package/{dist → lib}/model/tempo-client.js +13 -13
- package/lib/model/tempo-client.js.map +1 -0
- package/lib/model/tempo-selectors.d.ts.map +1 -0
- package/{dist → lib}/model/tempo-selectors.js +1 -1
- package/lib/model/tempo-selectors.js.map +1 -0
- package/lib/model/trace-query-model.d.ts.map +1 -0
- package/{dist → lib}/model/trace-query-model.js +1 -1
- package/lib/model/trace-query-model.js.map +1 -0
- package/lib/plugins/TempoDatasourceEditor.d.ts +9 -0
- package/lib/plugins/TempoDatasourceEditor.d.ts.map +1 -0
- package/lib/plugins/TempoDatasourceEditor.js +57 -0
- package/lib/plugins/TempoDatasourceEditor.js.map +1 -0
- package/lib/plugins/index.d.ts +5 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/index.js +6 -0
- package/lib/plugins/index.js.map +1 -0
- package/lib/plugins/tempo-datasource-types.d.ts.map +1 -0
- package/{dist → lib}/plugins/tempo-datasource-types.js +1 -1
- package/lib/plugins/tempo-datasource-types.js.map +1 -0
- package/lib/plugins/tempo-datasource.d.ts.map +1 -0
- package/{dist → lib}/plugins/tempo-datasource.js +10 -10
- package/lib/plugins/tempo-datasource.js.map +1 -0
- package/lib/plugins/tempo-trace-query/TempoTraceQuery.d.ts.map +1 -0
- package/{dist → lib}/plugins/tempo-trace-query/TempoTraceQuery.js +1 -1
- package/lib/plugins/tempo-trace-query/TempoTraceQuery.js.map +1 -0
- package/lib/plugins/tempo-trace-query/TempoTraceQueryEditor.d.ts.map +1 -0
- package/{dist → lib}/plugins/tempo-trace-query/TempoTraceQueryEditor.js +10 -5
- package/lib/plugins/tempo-trace-query/TempoTraceQueryEditor.js.map +1 -0
- package/lib/plugins/tempo-trace-query/get-trace-data.d.ts.map +1 -0
- package/lib/plugins/tempo-trace-query/get-trace-data.js +90 -0
- package/lib/plugins/tempo-trace-query/get-trace-data.js.map +1 -0
- package/lib/plugins/tempo-trace-query/index.d.ts +5 -0
- package/lib/plugins/tempo-trace-query/index.d.ts.map +1 -0
- package/lib/plugins/tempo-trace-query/index.js +6 -0
- package/lib/plugins/tempo-trace-query/index.js.map +1 -0
- package/lib/plugins/tempo-trace-query/query-editor-model.d.ts.map +1 -0
- package/{dist → lib}/plugins/tempo-trace-query/query-editor-model.js +1 -1
- package/lib/plugins/tempo-trace-query/query-editor-model.js.map +1 -0
- package/lib/setup-tests.d.ts +2 -0
- package/lib/setup-tests.d.ts.map +1 -0
- package/lib/setup-tests.js +17 -0
- package/lib/setup-tests.js.map +1 -0
- package/lib/test/index.d.ts.map +1 -0
- package/{dist → lib}/test/index.js +1 -1
- package/lib/test/index.js.map +1 -0
- package/{dist → lib}/test/mock-data.d.ts +0 -1
- package/lib/test/mock-data.d.ts.map +1 -0
- package/{dist → lib}/test/mock-data.js +1 -179
- package/lib/test/mock-data.js.map +1 -0
- package/lib/test/setup-tests.d.ts.map +1 -0
- package/{dist → lib}/test/setup-tests.js +1 -1
- package/lib/test/setup-tests.js.map +1 -0
- package/mf-manifest.json +610 -0
- package/mf-stats.json +693 -0
- package/package.json +83 -44
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/model/api-types.js +0 -38
- package/dist/components/TraceQLEditor.d.ts.map +0 -1
- package/dist/components/TraceQLEditor.js.map +0 -1
- package/dist/components/TraceQLExtension.d.ts.map +0 -1
- package/dist/components/TraceQLExtension.js.map +0 -1
- package/dist/components/complete.d.ts.map +0 -1
- package/dist/components/complete.js.map +0 -1
- package/dist/components/highlight.d.ts.map +0 -1
- package/dist/components/highlight.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/model/api-types.d.ts.map +0 -1
- package/dist/model/api-types.js.map +0 -1
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/index.js.map +0 -1
- package/dist/model/tempo-client.d.ts.map +0 -1
- package/dist/model/tempo-client.js.map +0 -1
- package/dist/model/tempo-selectors.d.ts.map +0 -1
- package/dist/model/tempo-selectors.js.map +0 -1
- package/dist/model/trace-query-model.d.ts.map +0 -1
- package/dist/model/trace-query-model.js.map +0 -1
- package/dist/plugins/tempo-datasource-types.d.ts.map +0 -1
- package/dist/plugins/tempo-datasource-types.js.map +0 -1
- package/dist/plugins/tempo-datasource.d.ts.map +0 -1
- package/dist/plugins/tempo-datasource.js.map +0 -1
- package/dist/plugins/tempo-trace-query/TempoTraceQuery.d.ts.map +0 -1
- package/dist/plugins/tempo-trace-query/TempoTraceQuery.js.map +0 -1
- package/dist/plugins/tempo-trace-query/TempoTraceQueryEditor.d.ts.map +0 -1
- package/dist/plugins/tempo-trace-query/TempoTraceQueryEditor.js.map +0 -1
- package/dist/plugins/tempo-trace-query/get-trace-data.d.ts.map +0 -1
- package/dist/plugins/tempo-trace-query/get-trace-data.js +0 -171
- package/dist/plugins/tempo-trace-query/get-trace-data.js.map +0 -1
- package/dist/plugins/tempo-trace-query/query-editor-model.d.ts.map +0 -1
- package/dist/plugins/tempo-trace-query/query-editor-model.js.map +0 -1
- package/dist/test/index.d.ts.map +0 -1
- package/dist/test/index.js.map +0 -1
- package/dist/test/mock-data.d.ts.map +0 -1
- package/dist/test/mock-data.js.map +0 -1
- package/dist/test/setup-tests.d.ts.map +0 -1
- package/dist/test/setup-tests.js.map +0 -1
- package/plugin.json +0 -26
- /package/{dist → lib}/cjs/components/TraceQLExtension.js +0 -0
- /package/{dist → lib}/cjs/components/highlight.js +0 -0
- /package/{dist → lib}/cjs/components/index.js +0 -0
- /package/{dist → lib}/components/TraceQLEditor.d.ts +0 -0
- /package/{dist → lib}/components/TraceQLExtension.d.ts +0 -0
- /package/{dist → lib}/components/TraceQLExtension.js +0 -0
- /package/{dist → lib}/components/complete.d.ts +0 -0
- /package/{dist → lib}/components/highlight.d.ts +0 -0
- /package/{dist → lib}/components/highlight.js +0 -0
- /package/{dist → lib}/components/index.d.ts +0 -0
- /package/{dist → lib}/components/index.js +0 -0
- /package/{dist → lib}/model/index.d.ts +0 -0
- /package/{dist → lib}/model/tempo-selectors.d.ts +0 -0
- /package/{dist → lib}/model/trace-query-model.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-datasource-types.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-datasource.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-trace-query/TempoTraceQuery.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-trace-query/TempoTraceQueryEditor.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-trace-query/get-trace-data.d.ts +0 -0
- /package/{dist → lib}/plugins/tempo-trace-query/query-editor-model.d.ts +0 -0
- /package/{dist → lib}/test/index.d.ts +0 -0
- /package/{dist → lib}/test/setup-tests.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={5311:function(e,r,t){Promise.all([t.e("9677"),t.e("2179"),t.e("1620")]).then(t.bind(t,29161))}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={id:o,loaded:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,t.c=r,t.federation||(t.federation={chunkMatcher:function(e){return!/^(2((06|34|4)1|179)|5(037|072|987)|9(157|46|494|677)|3809|3950|4317|4601|8267)$/.test(e)}}),t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>"__mf/js/async/"+e+"."+({1465:"21c847e0",1540:"089c4f28",1580:"a18202be",1620:"45989def",1964:"75933dd4",2114:"c74c6b40",2292:"93559ffc",232:"90224262",3224:"8d499a63",3498:"4c9a082f",3539:"e15e8cee",3847:"bf6978f1",3960:"2228bf7e",4075:"4c40db9f",4238:"db631f1f",4289:"5e2073e0",5066:"46d1b7c5",5214:"fb1215df",5220:"80e3b05e",5409:"446b7e6f",5790:"949d8d1c",5981:"4700ddf6",6047:"665e5323",6292:"2481b399",6333:"0a267ee3",6374:"b59f6408",6377:"f9347b2d",6770:"4b9911ea",694:"91676c53",7376:"a69c2e5a",738:"2cdddba7",76:"be29ee59",7740:"1ecb3732",7748:"883f23aa",7786:"6b891ba5",8488:"d3005164",8597:"07c3a890",8930:"ae855fbe",9173:"83562213",9478:"57f45cd9"})[e]+".js",t.miniCssF=e=>"__mf/css/async/"+e+"."+({1580:"c10cf504",2341:"c10cf504"})[e]+".css",t.h=()=>"0f5054d5720f1cbe",(()=>{t.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="Tempo:";t.l=function(o,n,a,s){if(e[o]){e[o].push(n);return}if(void 0!==a)for(var i,l,c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var f=c[d];if(f.getAttribute("src")==o||f.getAttribute("data-webpack")==r+a){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,t.nc&&i.setAttribute("nonce",t.nc),i.setAttribute("data-webpack",r+a),i.src=o),e[o]=[n];var h=function(r,t){i.onerror=i.onload=null,clearTimeout(u);var n=e[o];if(delete e[o],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(function(e){return e(t)}),r)return r(t)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}})(),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.nc=void 0,(()=>{var e=[];t.O=(r,o,n,a)=>{if(o){a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[o,n,a];return}for(var i=1/0,s=0;s<e.length;s++){for(var[o,n,a]=e[s],l=!0,c=0;c<o.length;c++)(!1&a||i>=a)&&Object.keys(t.O).every(e=>t.O[e](o[c]))?o.splice(c--,1):(l=!1,a<i&&(i=a));if(l){e.splice(s--,1);var d=n();void 0!==d&&(r=d)}}return r}})(),t.p="/plugins/Tempo/",t.rv=()=>"1.2.8",t.S={},t.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@emotion/react",version:"11.14.0",factory:()=>Promise.all([t.e("3960"),t.e("9677"),t.e("8930")]).then(()=>()=>t(96434)),eager:0,singleton:1,requiredVersion:"^11.11.3"},{name:"@emotion/styled",version:"11.14.0",factory:()=>Promise.all([t.e("9677"),t.e("9157"),t.e("694")]).then(()=>()=>t(51958)),eager:0,singleton:1},{name:"@hookform/resolvers",version:"3.10.0",factory:()=>Promise.all([t.e("3809"),t.e("5214")]).then(()=>()=>t(81228)),eager:0,singleton:1},{name:"@perses-dev/components",version:"0.0.0-snapshot-histogram-types-78c5104",factory:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("5220"),t.e("6047"),t.e("7376"),t.e("7748"),t.e("4238"),t.e("3224"),t.e("7786"),t.e("2292"),t.e("8597"),t.e("5066"),t.e("9677"),t.e("2179"),t.e("9157"),t.e("5987"),t.e("946"),t.e("8267"),t.e("5037"),t.e("1580")]).then(()=>()=>t(14181)),eager:0,singleton:1},{name:"@perses-dev/dashboards",version:"0.0.0-snapshot-histogram-types-78c5104",factory:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("5220"),t.e("6047"),t.e("1465"),t.e("7748"),t.e("3498"),t.e("9677"),t.e("2179"),t.e("9157"),t.e("5987"),t.e("4317"),t.e("946"),t.e("3950"),t.e("3809"),t.e("241"),t.e("2114")]).then(()=>()=>t(3023)),eager:0,singleton:1},{name:"@perses-dev/explore",version:"0.0.0-snapshot-histogram-types-78c5104",factory:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("5220"),t.e("7376"),t.e("1465"),t.e("3539"),t.e("9677"),t.e("9157"),t.e("4317"),t.e("946"),t.e("3950"),t.e("2061"),t.e("9478")]).then(()=>()=>t(6893)),eager:0,singleton:1},{name:"@perses-dev/plugin-system",version:"0.0.0-snapshot-histogram-types-78c5104",factory:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("5220"),t.e("6047"),t.e("7376"),t.e("1465"),t.e("7786"),t.e("76"),t.e("9677"),t.e("2179"),t.e("9157"),t.e("5987"),t.e("946"),t.e("3950"),t.e("3809"),t.e("241"),t.e("8267"),t.e("2061"),t.e("5072"),t.e("4601"),t.e("6333")]).then(()=>()=>t(13659)),eager:0,singleton:1},{name:"@tanstack/react-query",version:"5.69.0",factory:()=>Promise.all([t.e("232"),t.e("9677"),t.e("3847")]).then(()=>()=>t(40150)),eager:0,singleton:1},{name:"date-fns",version:"4.1.0",factory:()=>Promise.all([t.e("4238"),t.e("3224"),t.e("4075")]).then(()=>()=>t(99657)),eager:0,singleton:1},{name:"echarts",version:"5.5.0",factory:()=>Promise.all([t.e("2292"),t.e("5409")]).then(()=>()=>t(71932)),eager:0,singleton:1},{name:"lodash",version:"4.17.21",factory:()=>t.e("5981").then(()=>()=>t(98784)),eager:0,singleton:1},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([t.e("9173"),t.e("9677")]).then(()=>()=>t(31542)),eager:0,singleton:1,requiredVersion:"18.2.0"},{name:"react-hook-form",version:"7.54.2",factory:()=>Promise.all([t.e("6292"),t.e("9677")]).then(()=>()=>t(36679)),eager:0,singleton:1},{name:"react-router-dom",version:"6.30.0",factory:()=>Promise.all([t.e("6377"),t.e("9677"),t.e("2179")]).then(()=>()=>t(65895)),eager:0,singleton:1},{name:"react",version:"18.3.1",factory:()=>t.e("1964").then(()=>()=>t(27378)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"Tempo"},t.I=t.I||function(){throw Error("should have __webpack_require__.I")},t.consumesLoadingData={chunkMapping:{5072:["43392"],9157:["72116"],4601:["89605","76242","31373","88213","93098"],9677:["54538"],2061:["72926"],5037:["48137"],9494:["57871"],8267:["4665"],3950:["21656"],2179:["6085"],5987:["20461"],946:["45913"],4317:["87390"],241:["84275","64293","53034"],3809:["57576"]},moduleIdToConsumeDataMapping:{53034:{shareScope:"default",shareKey:"@tanstack/react-query",import:"@tanstack/react-query",requiredVersion:"^5.64.2",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("232").then(()=>()=>t(40150))},88213:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(13659)},72116:{shareScope:"default",shareKey:"@emotion/react",import:"@emotion/react",requiredVersion:"^11.11.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("3960").then(()=>()=>t(96434))},89605:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("6377").then(()=>()=>t(65895))},84275:{shareScope:"default",shareKey:"@hookform/resolvers",import:"@hookform/resolvers",requiredVersion:"^2.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("738").then(()=>()=>t(81228))},76242:{shareScope:"default",shareKey:"echarts",import:"echarts",requiredVersion:"5.5.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("2292"),t.e("5409")]).then(()=>()=>t(71932))},93098:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"^4.17.21",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("5981").then(()=>()=>t(98784))},4665:{shareScope:"default",shareKey:"date-fns-tz",import:"date-fns-tz",requiredVersion:"^3.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("3224"),t.e("7740"),t.e("9494")]).then(()=>()=>t(48872))},54538:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("1964").then(()=>()=>t(27378))},64293:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.46.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("6292").then(()=>()=>t(36679))},72926:{shareScope:"default",shareKey:"@perses-dev/dashboards",import:"@perses-dev/dashboards",requiredVersion:"0.0.0-snapshot-histogram-types-78c5104",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("6047"),t.e("1465"),t.e("7748"),t.e("3498"),t.e("2179"),t.e("5987"),t.e("4317"),t.e("3809"),t.e("241")]).then(()=>()=>t(3023))},20461:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^4.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4238"),t.e("3224"),t.e("4075")]).then(()=>()=>t(99657))},48137:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.51.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("6292").then(()=>()=>t(36679))},87390:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"0.0.0-snapshot-histogram-types-78c5104",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("5220"),t.e("6047"),t.e("7376"),t.e("1465"),t.e("7786"),t.e("76"),t.e("2179"),t.e("9157"),t.e("5987"),t.e("946"),t.e("3950"),t.e("3809"),t.e("241"),t.e("8267"),t.e("2061"),t.e("5072"),t.e("4601")]).then(()=>()=>t(13659))},21656:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"0.0.0-snapshot-histogram-types-78c5104",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("6374"),t.e("6047"),t.e("7376"),t.e("7748"),t.e("4238"),t.e("3224"),t.e("7786"),t.e("2292"),t.e("8597"),t.e("5066"),t.e("2179"),t.e("5987"),t.e("8267"),t.e("5037"),t.e("2341")]).then(()=>()=>t(14181))},31373:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"^11.6.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("6770").then(()=>()=>t(51958))},6085:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("9173").then(()=>()=>t(31542))},57871:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^3.0.0 || ^4.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4238"),t.e("4075")]).then(()=>()=>t(99657))},43392:{shareScope:"default",shareKey:"@perses-dev/explore",import:"@perses-dev/explore",requiredVersion:"0.0.0-snapshot-histogram-types-78c5104",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("4289"),t.e("1540"),t.e("7376"),t.e("1465"),t.e("3539"),t.e("4317"),t.e("8488")]).then(()=>()=>t(6893))},57576:{shareScope:"default",shareKey:"react-hook-form",import:"react-hook-form",requiredVersion:"^7.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("6292"),t.e("9677")]).then(()=>()=>t(36679))},45913:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"^11.3.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("5790").then(()=>()=>t(51958))}},initialConsumes:[]},t.f.consumes=t.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},(()=>{if("undefined"!=typeof document){var e=function(e,r,o,n,a){var s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",t.nc&&(s.nonce=t.nc),s.onerror=s.onload=function(t){if(s.onerror=s.onload=null,"load"===t.type)n();else{var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.href||r,l=Error("Loading CSS chunk "+e+" failed.\\n("+i+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=i,s.parentNode&&s.parentNode.removeChild(s),a(l)}},s.href=r,o?o.parentNode.insertBefore(s,o.nextSibling):document.head.appendChild(s),s},r=function(e,r){for(var t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var n=t[o],a=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(a===e||a===r))return n}for(var s=document.getElementsByTagName("style"),o=0;o<s.length;o++){var n=s[o],a=n.getAttribute("data-href");if(a===e||a===r)return n}},o={6909:0};t.f.miniCss=function(n,a){if(o[n])a.push(o[n]);else if(0!==o[n]&&({2341:1,1580:1})[n])a.push(o[n]=new Promise(function(o,a){var s=t.miniCssF(n),i=t.p+s;if(r(s,i))return o();e(n,i,null,o,a)}).then(function(){o[n]=0},function(e){throw delete o[n],e}))}}})(),(()=>{var e={6909:0};t.f.j=function(r,o){var n=t.o(e,r)?e[r]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(2((06|34|4)1|179)|5(037|072|987)|9(157|46|494|677)|3809|3950|4317|4601|8267)$/.test(r))e[r]=0;else{var a=new Promise((t,o)=>n=e[r]=[t,o]);o.push(n[2]=a);var s=t.p+t.u(r),i=Error();t.l(s,function(o){if(t.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,n[1](i)}},"chunk-"+r,r)}}},t.O.j=r=>0===e[r];var r=(r,o)=>{var n,a,[s,i,l]=o,c=0;if(s.some(r=>0!==e[r])){for(n in i)t.o(i,n)&&(t.m[n]=i[n]);if(l)var d=l(t)}for(r&&r(o);c<s.length;c++)a=s[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(d)},o=self.webpackChunkTempo=self.webpackChunkTempo||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})(),t.ruid="bundler=rspack@1.2.8",t.O(void 0,["1096"],function(){return t(96985)});var o=t.O(void 0,["1096"],function(){return t(5311)});o=t.O(o)})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap.tsx"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -10,10 +10,10 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import ReactDOM from 'react-dom/client';
|
|
16
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
17
|
+
root.render(/*#__PURE__*/ _jsx(React.StrictMode, {}));
|
|
18
18
|
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/bootstrap.tsx"],"sourcesContent":["// Copyright 2024 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 React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nconst root = ReactDOM.createRoot(document.getElementById('root')!);\nroot.render(<React.StrictMode></React.StrictMode>);\n"],"names":["React","ReactDOM","root","createRoot","document","getElementById","render","StrictMode"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,WAAW,QAAQ;AAC1B,OAAOC,cAAc,mBAAmB;AAExC,MAAMC,OAAOD,SAASE,UAAU,CAACC,SAASC,cAAc,CAAC;AACzDH,KAAKI,MAAM,eAAC,KAACN,MAAMO,UAAU"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
18
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
19
|
+
const _client = /*#__PURE__*/ _interop_require_default(require("react-dom/client"));
|
|
20
|
+
function _interop_require_default(obj) {
|
|
21
|
+
return obj && obj.__esModule ? obj : {
|
|
22
|
+
default: obj
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const root = _client.default.createRoot(document.getElementById('root'));
|
|
26
|
+
root.render(/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.default.StrictMode, {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -94,7 +94,6 @@ function TraceQLEditor({ completeConfig, ...rest }) {
|
|
|
94
94
|
}, [
|
|
95
95
|
theme
|
|
96
96
|
]);
|
|
97
|
-
var _rest_value;
|
|
98
97
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
99
98
|
position: "relative",
|
|
100
99
|
sx: {
|
|
@@ -125,7 +124,7 @@ function TraceQLEditor({ completeConfig, ...rest }) {
|
|
|
125
124
|
foldGutter: false,
|
|
126
125
|
// The explore view accepts either a TraceQL query or a Trace ID as input. The lezer grammar marks Trace IDs as invalid,
|
|
127
126
|
// therefore let's disable syntax highlighting if the input is a Trace ID.
|
|
128
|
-
syntaxHighlighting: !(0, _core.isValidTraceId)(
|
|
127
|
+
syntaxHighlighting: !(0, _core.isValidTraceId)(rest.value ?? '')
|
|
129
128
|
},
|
|
130
129
|
extensions: [
|
|
131
130
|
_reactcodemirror.EditorView.lineWrapping,
|
|
@@ -50,11 +50,10 @@ function identifyCompletions(state, pos, tree) {
|
|
|
50
50
|
const node = tree.resolveInner(pos, -1);
|
|
51
51
|
switch(node.type.id){
|
|
52
52
|
case _lezertraceql.SpansetFilter:
|
|
53
|
-
var _node_firstChild;
|
|
54
53
|
// autocomplete {
|
|
55
54
|
// autocomplete {}
|
|
56
55
|
// do not autocomplete if cursor is after } or { status=ok }
|
|
57
|
-
if ((node.firstChild === null ||
|
|
56
|
+
if ((node.firstChild === null || node.firstChild?.type.id === 0) && !state.sliceDoc(node.from, pos).includes('}')) {
|
|
58
57
|
return {
|
|
59
58
|
scopes: [
|
|
60
59
|
{
|
|
@@ -84,9 +83,8 @@ function identifyCompletions(state, pos, tree) {
|
|
|
84
83
|
from: pos
|
|
85
84
|
};
|
|
86
85
|
case _lezertraceql.AttributeField:
|
|
87
|
-
var _node_firstChild1, _node_firstChild2;
|
|
88
86
|
// autocomplete { resource.
|
|
89
|
-
if (
|
|
87
|
+
if (node.firstChild?.type.id === _lezertraceql.Resource) {
|
|
90
88
|
return {
|
|
91
89
|
scopes: [
|
|
92
90
|
{
|
|
@@ -98,7 +96,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
98
96
|
};
|
|
99
97
|
}
|
|
100
98
|
// autocomplete { span.
|
|
101
|
-
if (
|
|
99
|
+
if (node.firstChild?.type.id === _lezertraceql.Span) {
|
|
102
100
|
return {
|
|
103
101
|
scopes: [
|
|
104
102
|
{
|
|
@@ -127,9 +125,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
127
125
|
}
|
|
128
126
|
break;
|
|
129
127
|
case _lezertraceql.Identifier:
|
|
130
|
-
|
|
131
|
-
if (((_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.type.id) === _lezertraceql.AttributeField) {
|
|
132
|
-
var _node_parent_firstChild, _node_parent1, _node_parent_firstChild1, _node_parent2, _node_parent_firstChild2, _node_parent3;
|
|
128
|
+
if (node.parent?.type.id === _lezertraceql.AttributeField) {
|
|
133
129
|
const text = state.sliceDoc(node.parent.from, node.parent.to);
|
|
134
130
|
// autocomplete { span:s
|
|
135
131
|
// only intrinsic fields can have a : in the name.
|
|
@@ -145,7 +141,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
145
141
|
};
|
|
146
142
|
}
|
|
147
143
|
// autocomplete { resource.s
|
|
148
|
-
if (
|
|
144
|
+
if (node.parent?.firstChild?.type.id === _lezertraceql.Resource) {
|
|
149
145
|
return {
|
|
150
146
|
scopes: [
|
|
151
147
|
{
|
|
@@ -157,7 +153,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
157
153
|
};
|
|
158
154
|
}
|
|
159
155
|
// autocomplete { span.s
|
|
160
|
-
if (
|
|
156
|
+
if (node.parent?.firstChild?.type.id === _lezertraceql.Span) {
|
|
161
157
|
return {
|
|
162
158
|
scopes: [
|
|
163
159
|
{
|
|
@@ -169,7 +165,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
169
165
|
};
|
|
170
166
|
}
|
|
171
167
|
// autocomplete { .s
|
|
172
|
-
if (
|
|
168
|
+
if (node.parent?.firstChild?.type.id === _lezertraceql.Identifier) {
|
|
173
169
|
return {
|
|
174
170
|
scopes: [
|
|
175
171
|
{
|
|
@@ -187,10 +183,9 @@ function identifyCompletions(state, pos, tree) {
|
|
|
187
183
|
}
|
|
188
184
|
break;
|
|
189
185
|
case _lezertraceql.FieldOp:
|
|
190
|
-
var _node_parent_firstChild3, _node_parent4;
|
|
191
186
|
// autocomplete { status=
|
|
192
187
|
// autocomplete { span.http.method=
|
|
193
|
-
if (
|
|
188
|
+
if (node.parent?.firstChild?.type.id === _lezertraceql.FieldExpression) {
|
|
194
189
|
const fieldExpr = node.parent.firstChild;
|
|
195
190
|
const attribute = state.sliceDoc(fieldExpr.from, fieldExpr.to);
|
|
196
191
|
return {
|
|
@@ -205,10 +200,9 @@ function identifyCompletions(state, pos, tree) {
|
|
|
205
200
|
}
|
|
206
201
|
break;
|
|
207
202
|
case _lezertraceql.String:
|
|
208
|
-
var _node_parent_parent_parent_firstChild, _node_parent_parent_parent, _node_parent_parent, _node_parent5;
|
|
209
203
|
// autocomplete { resource.service.name="
|
|
210
204
|
// do not autocomplete if cursor is after closing quotes { resource.service.name=""
|
|
211
|
-
if (
|
|
205
|
+
if (node.parent?.parent?.parent?.firstChild?.type.id === _lezertraceql.FieldExpression && !/^".*"$/.test(state.sliceDoc(node.from, pos))) {
|
|
212
206
|
const fieldExpr = node.parent.parent.parent.firstChild;
|
|
213
207
|
const attribute = state.sliceDoc(fieldExpr.from, fieldExpr.to);
|
|
214
208
|
return {
|
|
@@ -223,9 +217,8 @@ function identifyCompletions(state, pos, tree) {
|
|
|
223
217
|
}
|
|
224
218
|
break;
|
|
225
219
|
case 0 /* error node */ :
|
|
226
|
-
var _node_prevSibling, _node_parent_firstChild4, _node_parent6, _node_parent7, _node_parent8;
|
|
227
220
|
// autocomplete { status=e
|
|
228
|
-
if (
|
|
221
|
+
if (node.prevSibling?.type.id === _lezertraceql.FieldOp && node.parent?.firstChild?.type.id === _lezertraceql.FieldExpression) {
|
|
229
222
|
const fieldExpr = node.parent.firstChild;
|
|
230
223
|
const attribute = state.sliceDoc(fieldExpr.from, fieldExpr.to);
|
|
231
224
|
// ignore leading " in { name="HT
|
|
@@ -242,7 +235,7 @@ function identifyCompletions(state, pos, tree) {
|
|
|
242
235
|
}
|
|
243
236
|
// autocomplete { s
|
|
244
237
|
// autocomplete { status=ok && s
|
|
245
|
-
if (
|
|
238
|
+
if (node.parent?.type.id === _lezertraceql.SpansetFilter || node.parent?.type.id === _lezertraceql.FieldExpression) {
|
|
246
239
|
return {
|
|
247
240
|
scopes: [
|
|
248
241
|
{
|
package/lib/cjs/env.d.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
/// <reference types="@rsbuild/core/types" />
|
|
14
|
+
"use strict";
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "TempoExplorer", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return TempoExplorer;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _material = require("@mui/material");
|
|
25
|
+
const _components = require("@perses-dev/components");
|
|
26
|
+
const _core = require("@perses-dev/core");
|
|
27
|
+
const _dashboards = require("@perses-dev/dashboards");
|
|
28
|
+
const _explore = require("@perses-dev/explore");
|
|
29
|
+
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
30
|
+
function SearchResultsPanel({ queries }) {
|
|
31
|
+
const { isFetching, isLoading, queryResults } = (0, _pluginsystem.useDataQueries)('TraceQuery');
|
|
32
|
+
// no query executed, show empty panel
|
|
33
|
+
if (queryResults.length === 0) {
|
|
34
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
35
|
+
}
|
|
36
|
+
if (isLoading || isFetching) {
|
|
37
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.LoadingOverlay, {});
|
|
38
|
+
}
|
|
39
|
+
const queryError = queryResults.find((d)=>d.error);
|
|
40
|
+
if (queryError) {
|
|
41
|
+
throw queryError.error;
|
|
42
|
+
}
|
|
43
|
+
const tracesFound = queryResults.some((traceData)=>(traceData.data?.searchResult ?? []).length > 0);
|
|
44
|
+
if (!tracesFound) {
|
|
45
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.NoDataOverlay, {
|
|
46
|
+
resource: "traces"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
50
|
+
sx: {
|
|
51
|
+
height: '100%'
|
|
52
|
+
},
|
|
53
|
+
gap: 2,
|
|
54
|
+
children: [
|
|
55
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
56
|
+
sx: {
|
|
57
|
+
height: '35%',
|
|
58
|
+
flexShrink: 0
|
|
59
|
+
},
|
|
60
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_dashboards.Panel, {
|
|
61
|
+
panelOptions: {
|
|
62
|
+
hideHeader: true
|
|
63
|
+
},
|
|
64
|
+
definition: {
|
|
65
|
+
kind: 'Panel',
|
|
66
|
+
spec: {
|
|
67
|
+
queries,
|
|
68
|
+
display: {
|
|
69
|
+
name: ''
|
|
70
|
+
},
|
|
71
|
+
plugin: {
|
|
72
|
+
kind: 'ScatterChart',
|
|
73
|
+
spec: {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_dashboards.Panel, {
|
|
80
|
+
sx: {
|
|
81
|
+
flexGrow: 1
|
|
82
|
+
},
|
|
83
|
+
panelOptions: {
|
|
84
|
+
hideHeader: true
|
|
85
|
+
},
|
|
86
|
+
definition: {
|
|
87
|
+
kind: 'Panel',
|
|
88
|
+
spec: {
|
|
89
|
+
queries,
|
|
90
|
+
display: {
|
|
91
|
+
name: ''
|
|
92
|
+
},
|
|
93
|
+
plugin: {
|
|
94
|
+
kind: 'TraceTable',
|
|
95
|
+
spec: {}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function TracingGanttChartPanel({ queries }) {
|
|
104
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_dashboards.Panel, {
|
|
105
|
+
panelOptions: {
|
|
106
|
+
hideHeader: true
|
|
107
|
+
},
|
|
108
|
+
definition: {
|
|
109
|
+
kind: 'Panel',
|
|
110
|
+
spec: {
|
|
111
|
+
queries,
|
|
112
|
+
display: {
|
|
113
|
+
name: ''
|
|
114
|
+
},
|
|
115
|
+
plugin: {
|
|
116
|
+
kind: 'TracingGanttChart',
|
|
117
|
+
spec: {}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function TempoExplorer() {
|
|
124
|
+
const { data: { queries = [] }, setData } = (0, _explore.useExplorerManagerContext)();
|
|
125
|
+
// map TraceQueryDefinition to Definition<UnknownSpec>
|
|
126
|
+
const definitions = queries.length ? queries.map((query)=>{
|
|
127
|
+
return {
|
|
128
|
+
kind: query.spec.plugin.kind,
|
|
129
|
+
spec: query.spec.plugin.spec
|
|
130
|
+
};
|
|
131
|
+
}) : [];
|
|
132
|
+
// Cannot cast to TempoTraceQuerySpec because 'tempo-plugin' types are not accessible in @perses-dev/explore
|
|
133
|
+
const isSingleTrace = queries.length === 1 && queries[0]?.kind === 'TraceQuery' && queries[0]?.spec.plugin.kind === 'TempoTraceQuery' && (0, _core.isValidTraceId)((queries[0]?.spec.plugin.spec).query ?? ''); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
134
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
135
|
+
gap: 2,
|
|
136
|
+
sx: {
|
|
137
|
+
width: '100%'
|
|
138
|
+
},
|
|
139
|
+
children: [
|
|
140
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.MultiQueryEditor, {
|
|
141
|
+
queryTypes: [
|
|
142
|
+
'TraceQuery'
|
|
143
|
+
],
|
|
144
|
+
onChange: (newQueries)=>setData({
|
|
145
|
+
queries: newQueries
|
|
146
|
+
}),
|
|
147
|
+
queries: queries
|
|
148
|
+
}),
|
|
149
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ErrorBoundary, {
|
|
150
|
+
FallbackComponent: _components.ErrorAlert,
|
|
151
|
+
resetKeys: [
|
|
152
|
+
queries
|
|
153
|
+
],
|
|
154
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.DataQueriesProvider, {
|
|
155
|
+
definitions: definitions,
|
|
156
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
157
|
+
height: 700,
|
|
158
|
+
children: isSingleTrace ? /*#__PURE__*/ (0, _jsxruntime.jsx)(TracingGanttChartPanel, {
|
|
159
|
+
queries: queries
|
|
160
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(SearchResultsPanel, {
|
|
161
|
+
queries: queries
|
|
162
|
+
})
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
})
|
|
166
|
+
]
|
|
167
|
+
});
|
|
168
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
_export_star(require("./TempoExplorer"), exports);
|
|
6
|
+
function _export_star(from, to) {
|
|
7
|
+
Object.keys(from).forEach(function(k) {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
9
|
+
Object.defineProperty(to, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return from[k];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return from;
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getPluginModule", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return getPluginModule;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function getPluginModule() {
|
|
18
|
+
const { name, version, perses } = _packagejson.default;
|
|
19
|
+
return {
|
|
20
|
+
kind: 'PluginModule',
|
|
21
|
+
metadata: {
|
|
22
|
+
name,
|
|
23
|
+
version
|
|
24
|
+
},
|
|
25
|
+
spec: perses
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Copyright 2024 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
15
|
+
if (typeof WeakMap !== "function") return null;
|
|
16
|
+
var cacheBabelInterop = new WeakMap();
|
|
17
|
+
var cacheNodeInterop = new WeakMap();
|
|
18
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
19
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
20
|
+
})(nodeInterop);
|
|
21
|
+
}
|
|
22
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
23
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
24
|
+
return obj;
|
|
25
|
+
}
|
|
26
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
27
|
+
return {
|
|
28
|
+
default: obj
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
32
|
+
if (cache && cache.has(obj)) {
|
|
33
|
+
return cache.get(obj);
|
|
34
|
+
}
|
|
35
|
+
var newObj = {
|
|
36
|
+
__proto__: null
|
|
37
|
+
};
|
|
38
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
39
|
+
for(var key in obj){
|
|
40
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
41
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
42
|
+
if (desc && (desc.get || desc.set)) {
|
|
43
|
+
Object.defineProperty(newObj, key, desc);
|
|
44
|
+
} else {
|
|
45
|
+
newObj[key] = obj[key];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
newObj.default = obj;
|
|
50
|
+
if (cache) {
|
|
51
|
+
cache.set(obj, newObj);
|
|
52
|
+
}
|
|
53
|
+
return newObj;
|
|
54
|
+
}
|
|
55
|
+
Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "getPluginModule", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _getPluginModule.getPluginModule;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _getPluginModule = require("./getPluginModule");
|
|
12
|
+
_export_star(require("./components"), exports);
|
|
13
|
+
_export_star(require("./explore"), exports);
|
|
14
|
+
_export_star(require("./model"), exports);
|
|
15
|
+
_export_star(require("./plugins"), exports);
|
|
16
|
+
function _export_star(from, to) {
|
|
17
|
+
Object.keys(from).forEach(function(k) {
|
|
18
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
19
|
+
Object.defineProperty(to, k, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return from[k];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
return from;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright 2025 The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -41,11 +41,14 @@ _export(exports, {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const _core = require("@perses-dev/core");
|
|
44
|
-
const _apitypes = require("./api-types");
|
|
45
44
|
const executeRequest = async (...args)=>{
|
|
46
45
|
const response = await (0, _core.fetch)(...args);
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
try {
|
|
47
|
+
return await response.json();
|
|
48
|
+
} catch (e) {
|
|
49
|
+
console.error('Invalid response from server', e);
|
|
50
|
+
throw new Error('Invalid response from server');
|
|
51
|
+
}
|
|
49
52
|
};
|
|
50
53
|
function fetchWithGet(apiURI, params, queryOptions) {
|
|
51
54
|
const { datasourceUrl, headers = {} } = queryOptions;
|
|
@@ -90,24 +93,21 @@ async function searchWithFallback(params, queryOptions) {
|
|
|
90
93
|
}, queryOptions);
|
|
91
94
|
// For every trace, get the full trace, and find the number of spans and errors.
|
|
92
95
|
for (const batch of searchTraceIDResponse.batches){
|
|
93
|
-
let serviceName = '
|
|
94
|
-
for (const attr of batch.resource
|
|
96
|
+
let serviceName = 'unknown';
|
|
97
|
+
for (const attr of batch.resource?.attributes ?? []){
|
|
95
98
|
if (attr.key === 'service.name' && 'stringValue' in attr.value) {
|
|
96
99
|
serviceName = attr.value.stringValue;
|
|
97
100
|
break;
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
|
-
|
|
101
|
-
const stats = (_serviceStats_serviceName = serviceStats[serviceName]) !== null && _serviceStats_serviceName !== void 0 ? _serviceStats_serviceName : {
|
|
103
|
+
const stats = serviceStats[serviceName] ?? {
|
|
102
104
|
spanCount: 0
|
|
103
105
|
};
|
|
104
106
|
for (const scopeSpan of batch.scopeSpans){
|
|
105
107
|
stats.spanCount += scopeSpan.spans.length;
|
|
106
108
|
for (const span of scopeSpan.spans){
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var _stats_errorCount;
|
|
110
|
-
stats.errorCount = ((_stats_errorCount = stats.errorCount) !== null && _stats_errorCount !== void 0 ? _stats_errorCount : 0) + 1;
|
|
109
|
+
if (span.status?.code === _core.otlptracev1.StatusCodeError) {
|
|
110
|
+
stats.errorCount = (stats.errorCount ?? 0) + 1;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|