@sentry/mcp-server 0.16.0 → 0.17.0
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/dist/agent-COgY789I.js +225 -0
- package/dist/agent-COgY789I.js.map +1 -0
- package/dist/agent-Cody_f0d.cjs +59 -0
- package/dist/agent-Cody_f0d.cjs.map +1 -0
- package/dist/agent-DZRRChrO.js +53 -0
- package/dist/agent-DZRRChrO.js.map +1 -0
- package/dist/agent-DpCCnhh5.cjs +231 -0
- package/dist/agent-DpCCnhh5.cjs.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.cjs +6 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.js +3 -0
- package/dist/agent-tools/lookup-otel-semantics.cjs +5 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.js +4 -0
- package/dist/agent-tools/whoami.cjs +4 -0
- package/dist/agent-tools/whoami.d.cts +28 -0
- package/dist/agent-tools/whoami.d.cts.map +1 -0
- package/dist/agent-tools/whoami.d.ts +28 -0
- package/dist/agent-tools/whoami.d.ts.map +1 -0
- package/dist/agent-tools/whoami.js +3 -0
- package/dist/{analyze-issue-with-seer-szIqv1_I.js → analyze-issue-with-seer-DcSwrWrs.js} +7 -7
- package/dist/{analyze-issue-with-seer-szIqv1_I.js.map → analyze-issue-with-seer-DcSwrWrs.js.map} +1 -1
- package/dist/{analyze-issue-with-seer-B8ZWokLV.cjs → analyze-issue-with-seer-Dw9iqvSk.cjs} +7 -7
- package/dist/{analyze-issue-with-seer-B8ZWokLV.cjs.map → analyze-issue-with-seer-Dw9iqvSk.cjs.map} +1 -1
- package/dist/api-client/client.cjs +3 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +3 -2
- package/dist/api-client/index.cjs +5 -4
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +5 -4
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.cjs +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/api-client/types.js +1 -1
- package/dist/{api-utils-CHRiLf2Y.js → api-utils-BlUSO8xh.js} +12 -13
- package/dist/api-utils-BlUSO8xh.js.map +1 -0
- package/dist/{api-utils-B-9vnzoA.cjs → api-utils-DFWUfQ83.cjs} +12 -13
- package/dist/api-utils-DFWUfQ83.cjs.map +1 -0
- package/dist/{client-C_lwH0jz.cjs → client-CPrEfAwa.cjs} +307 -13
- package/dist/client-CPrEfAwa.cjs.map +1 -0
- package/dist/{client-D8vrUp2k.d.cts → client-C_dDreKj.d.ts} +163 -8
- package/dist/client-C_dDreKj.d.ts.map +1 -0
- package/dist/{client-h32L1Hx5.d.ts → client-CgS3tjJG.d.cts} +167 -12
- package/dist/client-CgS3tjJG.d.cts.map +1 -0
- package/dist/{client-pyNUFaLN.js → client-MaVV1gVC.js} +307 -13
- package/dist/client-MaVV1gVC.js.map +1 -0
- package/dist/config-BUmDxVLS.js +52 -0
- package/dist/config-BUmDxVLS.js.map +1 -0
- package/dist/config-BvtWiL3I.js +449 -0
- package/dist/config-BvtWiL3I.js.map +1 -0
- package/dist/config-CD-5FpOO.cjs +479 -0
- package/dist/config-CD-5FpOO.cjs.map +1 -0
- package/dist/config-FWsgDbm7.cjs +58 -0
- package/dist/config-FWsgDbm7.cjs.map +1 -0
- package/dist/{create-dsn-CI7MSiQu.cjs → create-dsn-C6IPwoVO.cjs} +12 -10
- package/dist/create-dsn-C6IPwoVO.cjs.map +1 -0
- package/dist/{create-dsn-CEEytIa4.js → create-dsn-QDLdwhDO.js} +12 -10
- package/dist/create-dsn-QDLdwhDO.js.map +1 -0
- package/dist/{create-project-CoV1e-vp.js → create-project-Cax3fWey.js} +14 -11
- package/dist/create-project-Cax3fWey.js.map +1 -0
- package/dist/{create-project-DnLKRG1p.cjs → create-project-DdSF58TR.cjs} +14 -11
- package/dist/create-project-DdSF58TR.cjs.map +1 -0
- package/dist/{create-team-DKpKxVIY.cjs → create-team-CXaLcylp.cjs} +14 -5
- package/dist/{create-team-DKpKxVIY.cjs.map → create-team-CXaLcylp.cjs.map} +1 -1
- package/dist/{create-team-HWN88CJQ.js → create-team-nm06goO5.js} +14 -5
- package/dist/{create-team-HWN88CJQ.js.map → create-team-nm06goO5.js.map} +1 -1
- package/dist/discover-dataset-fields-BEnyqPSq.js +156 -0
- package/dist/discover-dataset-fields-BEnyqPSq.js.map +1 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs +180 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +1 -0
- package/dist/{fetch-utils-gHZdOZV2.js → fetch-utils-C_Xj921x.js} +1 -1
- package/dist/{fetch-utils-gHZdOZV2.js.map → fetch-utils-C_Xj921x.js.map} +1 -1
- package/dist/{fetch-utils-SuGtrQRz.cjs → fetch-utils-DkcYwqBo.cjs} +1 -1
- package/dist/{fetch-utils-SuGtrQRz.cjs.map → fetch-utils-DkcYwqBo.cjs.map} +1 -1
- package/dist/{fetch-utils-B0CB5xLM.d.ts → fetch-utils-JDZw4XaU.d.ts} +1 -1
- package/dist/{fetch-utils-B0CB5xLM.d.ts.map → fetch-utils-JDZw4XaU.d.ts.map} +1 -1
- package/dist/{find-dsns-BB9dQP0b.js → find-dsns-C3G5aBm1.js} +3 -3
- package/dist/{find-dsns-BB9dQP0b.js.map → find-dsns-C3G5aBm1.js.map} +1 -1
- package/dist/{find-dsns-vriZSwr7.cjs → find-dsns-vQolGM7e.cjs} +3 -3
- package/dist/{find-dsns-vriZSwr7.cjs.map → find-dsns-vQolGM7e.cjs.map} +1 -1
- package/dist/{find-organizations-Cx5vCj4j.cjs → find-organizations-BDtHkcFV.cjs} +2 -2
- package/dist/{find-organizations-Cx5vCj4j.cjs.map → find-organizations-BDtHkcFV.cjs.map} +1 -1
- package/dist/{find-organizations-BILg1hUb.js → find-organizations-Cs1GvZtJ.js} +2 -2
- package/dist/{find-organizations-BILg1hUb.js.map → find-organizations-Cs1GvZtJ.js.map} +1 -1
- package/dist/{find-projects-CgCj2_eq.js → find-projects-B0NdOjBO.js} +3 -3
- package/dist/{find-projects-CgCj2_eq.js.map → find-projects-B0NdOjBO.js.map} +1 -1
- package/dist/{find-projects-CN99WBex.cjs → find-projects-xM2L0U1W.cjs} +3 -3
- package/dist/{find-projects-CN99WBex.cjs.map → find-projects-xM2L0U1W.cjs.map} +1 -1
- package/dist/{find-releases-Cm11xU5S.cjs → find-releases-BBTYr5Bx.cjs} +3 -3
- package/dist/{find-releases-Cm11xU5S.cjs.map → find-releases-BBTYr5Bx.cjs.map} +1 -1
- package/dist/{find-releases-BsQF3wc5.js → find-releases-BO2OF_uR.js} +3 -3
- package/dist/{find-releases-BsQF3wc5.js.map → find-releases-BO2OF_uR.js.map} +1 -1
- package/dist/{find-teams-CS443jRa.cjs → find-teams-B237Aq8U.cjs} +3 -3
- package/dist/{find-teams-CS443jRa.cjs.map → find-teams-B237Aq8U.cjs.map} +1 -1
- package/dist/{find-teams-XgUg8Nj5.js → find-teams-CqUwp0EI.js} +3 -3
- package/dist/{find-teams-XgUg8Nj5.js.map → find-teams-CqUwp0EI.js.map} +1 -1
- package/dist/formatters-B3ONbRhI.js +79 -0
- package/dist/formatters-B3ONbRhI.js.map +1 -0
- package/dist/formatters-CfeBjhXZ.cjs +235 -0
- package/dist/formatters-CfeBjhXZ.cjs.map +1 -0
- package/dist/formatters-DSYXBiQx.js +217 -0
- package/dist/formatters-DSYXBiQx.js.map +1 -0
- package/dist/formatters-DbqofIoy.cjs +85 -0
- package/dist/formatters-DbqofIoy.cjs.map +1 -0
- package/dist/{formatting-aGQ7M_2w.d.cts → formatting-BxyhA4G3.d.cts} +4 -4
- package/dist/formatting-BxyhA4G3.d.cts.map +1 -0
- package/dist/{formatting-AXU4XsjJ.cjs → formatting-C180PVwd.cjs} +3 -3
- package/dist/formatting-C180PVwd.cjs.map +1 -0
- package/dist/{formatting-DnSI0DHf.d.ts → formatting-C80LN9iK.d.ts} +4 -4
- package/dist/formatting-C80LN9iK.d.ts.map +1 -0
- package/dist/{formatting-WGc5qrhv.js → formatting-DIvCVunN.js} +3 -3
- package/dist/formatting-DIvCVunN.js.map +1 -0
- package/dist/{formatting-utils-DgOyTl-m.js → formatting-utils-C3sej5ER.js} +1 -1
- package/dist/{formatting-utils-DgOyTl-m.js.map → formatting-utils-C3sej5ER.js.map} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs → formatting-utils-DDz14xeB.cjs} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs.map → formatting-utils-DDz14xeB.cjs.map} +1 -1
- package/dist/{get-doc-ByXR3EWc.cjs → get-doc-BfMg0GIa.cjs} +3 -3
- package/dist/{get-doc-ByXR3EWc.cjs.map → get-doc-BfMg0GIa.cjs.map} +1 -1
- package/dist/{get-doc-C1IEG2pH.js → get-doc-DyqJe6TP.js} +3 -3
- package/dist/{get-doc-C1IEG2pH.js.map → get-doc-DyqJe6TP.js.map} +1 -1
- package/dist/{get-event-attachment-N11gSV23.js → get-event-attachment-B-ElqztF.js} +3 -3
- package/dist/{get-event-attachment-N11gSV23.js.map → get-event-attachment-B-ElqztF.js.map} +1 -1
- package/dist/{get-event-attachment-CuGUfVAD.cjs → get-event-attachment-o0oH43Tv.cjs} +3 -3
- package/dist/{get-event-attachment-CuGUfVAD.cjs.map → get-event-attachment-o0oH43Tv.cjs.map} +1 -1
- package/dist/{get-issue-details-EklkHsWi.cjs → get-issue-details-CP_RyCpt.cjs} +22 -18
- package/dist/get-issue-details-CP_RyCpt.cjs.map +1 -0
- package/dist/{get-issue-details-BrEGybe0.js → get-issue-details-CzroF7HR.js} +22 -18
- package/dist/get-issue-details-CzroF7HR.js.map +1 -0
- package/dist/handler-BGhr9FJM.d.cts +15 -0
- package/dist/handler-BGhr9FJM.d.cts.map +1 -0
- package/dist/handler-BH_OLIbD.cjs +152 -0
- package/dist/handler-BH_OLIbD.cjs.map +1 -0
- package/dist/handler-BPPTAi7I.d.ts +15 -0
- package/dist/handler-BPPTAi7I.d.ts.map +1 -0
- package/dist/handler-BZ3hKPb8.d.cts +15 -0
- package/dist/handler-BZ3hKPb8.d.cts.map +1 -0
- package/dist/handler-O9fYgC9a.cjs +114 -0
- package/dist/handler-O9fYgC9a.cjs.map +1 -0
- package/dist/handler-aE_8mEm7.js +146 -0
- package/dist/handler-aE_8mEm7.js.map +1 -0
- package/dist/handler-cUB6XcUV.d.ts +15 -0
- package/dist/handler-cUB6XcUV.d.ts.map +1 -0
- package/dist/handler-ykkULTZ-.js +108 -0
- package/dist/handler-ykkULTZ-.js.map +1 -0
- package/dist/index.cjs +53 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -43
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.d.ts +1 -1
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.d.cts +188 -188
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +38 -38
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{issue-helpers-D2p1Gkgm.js → issue-helpers-CRx45FYG.js} +1 -1
- package/dist/{issue-helpers-D2p1Gkgm.js.map → issue-helpers-CRx45FYG.js.map} +1 -1
- package/dist/{issue-helpers-BJffpNoO.d.ts → issue-helpers-D1_Uqr-F.d.ts} +1 -1
- package/dist/{issue-helpers-BJffpNoO.d.ts.map → issue-helpers-D1_Uqr-F.d.ts.map} +1 -1
- package/dist/{issue-helpers-DvsTfq9u.cjs → issue-helpers-s5fKLwJZ.cjs} +1 -1
- package/dist/{issue-helpers-DvsTfq9u.cjs.map → issue-helpers-s5fKLwJZ.cjs.map} +1 -1
- package/dist/{logging-CX2buXiG.cjs → logging-BpL53bY6.cjs} +1 -1
- package/dist/{logging-CX2buXiG.cjs.map → logging-BpL53bY6.cjs.map} +1 -1
- package/dist/{logging-DzxYBMrn.js → logging-tGU_SYcA.js} +1 -1
- package/dist/{logging-DzxYBMrn.js.map → logging-tGU_SYcA.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/lookup-otel-semantics-BbriXZAx.cjs +5088 -0
- package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +1 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js +5076 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js.map +1 -0
- package/dist/{promptDefinitions-C29BWGYg.cjs → promptDefinitions-5V4-M69A.cjs} +2 -2
- package/dist/{promptDefinitions-C29BWGYg.cjs.map → promptDefinitions-5V4-M69A.cjs.map} +1 -1
- package/dist/{promptDefinitions-D3GTBGLr.d.ts → promptDefinitions-DehpwJfn.d.ts} +1 -1
- package/dist/promptDefinitions-DehpwJfn.d.ts.map +1 -0
- package/dist/{promptDefinitions-CSKE8T0a.js → promptDefinitions-DyshsF51.js} +2 -2
- package/dist/{promptDefinitions-CSKE8T0a.js.map → promptDefinitions-DyshsF51.js.map} +1 -1
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/{prompts-uWAbMvLe.cjs → prompts-BTtNbKQR.cjs} +6 -4
- package/dist/prompts-BTtNbKQR.cjs.map +1 -0
- package/dist/{prompts-Cuwmybyc.js → prompts-CYcvIxWR.js} +6 -4
- package/dist/prompts-CYcvIxWR.js.map +1 -0
- package/dist/prompts.cjs +1 -1
- package/dist/prompts.d.cts +1 -1
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/resources-CSxBC9gs.js +60 -0
- package/dist/resources-CSxBC9gs.js.map +1 -0
- package/dist/resources-TCvijqOA.cjs +72 -0
- package/dist/resources-TCvijqOA.cjs.map +1 -0
- package/dist/resources.cjs +1 -1
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +1 -1
- package/dist/{schema-BW_fxx99.d.cts → schema-BlkWypl3.d.ts} +235 -235
- package/dist/schema-BlkWypl3.d.ts.map +1 -0
- package/dist/{schema-DtsnsxMl.js → schema-Bv2fvxgy.js} +2 -2
- package/dist/{schema-DtsnsxMl.js.map → schema-Bv2fvxgy.js.map} +1 -1
- package/dist/{schema-B_cMyyJJ.cjs → schema-C0LznFvu.cjs} +4 -4
- package/dist/schema-C0LznFvu.cjs.map +1 -0
- package/dist/{schema-WDk5Yqww.js → schema-CcFmBoEf.js} +4 -4
- package/dist/schema-CcFmBoEf.js.map +1 -0
- package/dist/{schema-DkWOa2-c.d.ts → schema-CdDcpvrp.d.cts} +448 -448
- package/dist/schema-CdDcpvrp.d.cts.map +1 -0
- package/dist/{schema-BpJVmev8.cjs → schema-DPL_hZXP.cjs} +2 -2
- package/dist/{schema-BpJVmev8.cjs.map → schema-DPL_hZXP.cjs.map} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/{search-docs-Cr-gyE5m.cjs → search-docs-CjIZDaD1.cjs} +4 -4
- package/dist/{search-docs-Cr-gyE5m.cjs.map → search-docs-CjIZDaD1.cjs.map} +1 -1
- package/dist/{search-docs-BKUeMSyn.js → search-docs-ss09Dt0F.js} +4 -4
- package/dist/{search-docs-BKUeMSyn.js.map → search-docs-ss09Dt0F.js.map} +1 -1
- package/dist/search-issues-BFgCvRYe.js +0 -0
- package/dist/search-issues-Biu64RkQ.cjs +0 -0
- package/dist/{seer-utils-BvdVTH85.cjs → seer-utils-C7Kv0gr8.cjs} +1 -1
- package/dist/{seer-utils-BvdVTH85.cjs.map → seer-utils-C7Kv0gr8.cjs.map} +1 -1
- package/dist/{seer-utils-BdE7DddW.js → seer-utils-NPHv8KYY.js} +1 -1
- package/dist/{seer-utils-BdE7DddW.js.map → seer-utils-NPHv8KYY.js.map} +1 -1
- package/dist/{server-BhNrW6bw.js → server-D78x_7Vz.js} +56 -18
- package/dist/server-D78x_7Vz.js.map +1 -0
- package/dist/{server-9IEGGN8V.cjs → server-DYFiTMLB.cjs} +56 -18
- package/dist/server-DYFiTMLB.cjs.map +1 -0
- package/dist/server.cjs +51 -39
- package/dist/server.d.cts +4 -2
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +5 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +51 -39
- package/dist/{stdio-mw-fEjO4.cjs → stdio-Be01KQkA.cjs} +3 -3
- package/dist/{stdio-mw-fEjO4.cjs.map → stdio-Be01KQkA.cjs.map} +1 -1
- package/dist/{stdio-CQmibRBR.js → stdio-CDb2NHHD.js} +3 -3
- package/dist/{stdio-CQmibRBR.js.map → stdio-CDb2NHHD.js.map} +1 -1
- package/dist/test-setup.cjs +371 -0
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +371 -0
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.cjs +184 -0
- package/dist/toolDefinitions.cjs.map +1 -0
- package/dist/toolDefinitions.d.cts +13 -0
- package/dist/toolDefinitions.d.cts.map +1 -0
- package/dist/toolDefinitions.d.ts +8 -20
- package/dist/toolDefinitions.d.ts.map +1 -0
- package/dist/toolDefinitions.js +183 -1059
- package/dist/toolDefinitions.js.map +1 -0
- package/dist/tools/analyze-issue-with-seer.cjs +13 -12
- package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
- package/dist/tools/analyze-issue-with-seer.js +13 -12
- package/dist/tools/create-dsn.cjs +8 -7
- package/dist/tools/create-dsn.d.cts +2 -2
- package/dist/tools/create-dsn.d.ts +3 -3
- package/dist/tools/create-dsn.js +8 -7
- package/dist/tools/create-project.cjs +9 -8
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +3 -3
- package/dist/tools/create-project.js +9 -8
- package/dist/tools/create-team.cjs +8 -7
- package/dist/tools/create-team.d.cts +2 -2
- package/dist/tools/create-team.d.ts +3 -3
- package/dist/tools/create-team.js +8 -7
- package/dist/tools/find-dsns.cjs +8 -7
- package/dist/tools/find-dsns.d.cts +2 -2
- package/dist/tools/find-dsns.d.ts +3 -3
- package/dist/tools/find-dsns.js +8 -7
- package/dist/tools/find-organizations.cjs +7 -6
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +3 -3
- package/dist/tools/find-organizations.js +7 -6
- package/dist/tools/find-projects.cjs +8 -7
- package/dist/tools/find-projects.d.cts +2 -2
- package/dist/tools/find-projects.d.ts +3 -3
- package/dist/tools/find-projects.js +8 -7
- package/dist/tools/find-releases.cjs +8 -7
- package/dist/tools/find-releases.d.cts +2 -2
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +8 -7
- package/dist/tools/find-teams.cjs +8 -7
- package/dist/tools/find-teams.d.cts +2 -2
- package/dist/tools/find-teams.d.ts +3 -3
- package/dist/tools/find-teams.js +8 -7
- package/dist/tools/get-doc.cjs +8 -7
- package/dist/tools/get-doc.d.cts +2 -2
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +8 -7
- package/dist/tools/get-event-attachment.cjs +8 -7
- package/dist/tools/get-event-attachment.d.cts +2 -2
- package/dist/tools/get-event-attachment.d.ts +3 -3
- package/dist/tools/get-event-attachment.js +8 -7
- package/dist/tools/get-issue-details.cjs +12 -11
- package/dist/tools/get-issue-details.d.cts +2 -2
- package/dist/tools/get-issue-details.d.ts +3 -3
- package/dist/tools/get-issue-details.js +12 -11
- package/dist/tools/index.cjs +46 -35
- package/dist/tools/index.d.cts +74 -86
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +75 -87
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +46 -35
- package/dist/tools/search-docs.cjs +9 -8
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +9 -8
- package/dist/tools/search-events/agent.cjs +8 -0
- package/dist/tools/search-events/agent.d.cts +43 -0
- package/dist/tools/search-events/agent.d.cts.map +1 -0
- package/dist/tools/search-events/agent.d.ts +43 -0
- package/dist/tools/search-events/agent.d.ts.map +1 -0
- package/dist/tools/search-events/agent.js +8 -0
- package/dist/tools/search-events/config.cjs +7 -0
- package/dist/tools/search-events/config.d.cts +131 -0
- package/dist/tools/search-events/config.d.cts.map +1 -0
- package/dist/tools/search-events/config.d.ts +131 -0
- package/dist/tools/search-events/config.d.ts.map +1 -0
- package/dist/tools/search-events/config.js +3 -0
- package/dist/tools/search-events/formatters.cjs +8 -0
- package/dist/tools/search-events/formatters.d.cts +32 -0
- package/dist/tools/search-events/formatters.d.cts.map +1 -0
- package/dist/tools/search-events/formatters.d.ts +32 -0
- package/dist/tools/search-events/formatters.d.ts.map +1 -0
- package/dist/tools/search-events/formatters.js +6 -0
- package/dist/tools/search-events/handler.cjs +20 -0
- package/dist/tools/search-events/handler.d.cts +5 -0
- package/dist/tools/search-events/handler.d.ts +5 -0
- package/dist/tools/search-events/handler.js +20 -0
- package/dist/tools/search-events/index.cjs +21 -0
- package/dist/tools/search-events/index.d.cts +5 -0
- package/dist/tools/search-events/index.d.ts +5 -0
- package/dist/tools/search-events/index.js +21 -0
- package/dist/tools/search-events/utils.cjs +9 -0
- package/dist/tools/search-events/utils.d.cts +6 -0
- package/dist/tools/search-events/utils.d.ts +6 -0
- package/dist/tools/search-events/utils.js +5 -0
- package/dist/tools/search-issues/agent.cjs +7 -0
- package/dist/tools/search-issues/agent.d.cts +33 -0
- package/dist/tools/search-issues/agent.d.cts.map +1 -0
- package/dist/tools/search-issues/agent.d.ts +33 -0
- package/dist/tools/search-issues/agent.d.ts.map +1 -0
- package/dist/tools/search-issues/agent.js +7 -0
- package/dist/tools/search-issues/config.cjs +3 -0
- package/dist/tools/search-issues/config.d.cts +9 -0
- package/dist/tools/search-issues/config.d.cts.map +1 -0
- package/dist/tools/search-issues/config.d.ts +9 -0
- package/dist/tools/search-issues/config.d.ts.map +1 -0
- package/dist/tools/search-issues/config.js +3 -0
- package/dist/tools/search-issues/formatters.cjs +4 -0
- package/dist/tools/search-issues/formatters.d.cts +15 -0
- package/dist/tools/search-issues/formatters.d.cts.map +1 -0
- package/dist/tools/search-issues/formatters.d.ts +15 -0
- package/dist/tools/search-issues/formatters.d.ts.map +1 -0
- package/dist/tools/search-issues/formatters.js +4 -0
- package/dist/tools/search-issues/handler.cjs +18 -0
- package/dist/tools/search-issues/handler.d.cts +5 -0
- package/dist/tools/search-issues/handler.d.ts +5 -0
- package/dist/tools/search-issues/handler.js +18 -0
- package/dist/tools/search-issues/index.cjs +19 -0
- package/dist/tools/search-issues/index.d.cts +5 -0
- package/dist/tools/search-issues/index.d.ts +5 -0
- package/dist/tools/search-issues/index.js +19 -0
- package/dist/tools/types.d.cts +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +13 -12
- package/dist/tools/update-issue.d.cts +2 -2
- package/dist/tools/update-issue.d.ts +3 -3
- package/dist/tools/update-issue.js +13 -12
- package/dist/tools/update-project.cjs +9 -8
- package/dist/tools/update-project.d.cts +2 -2
- package/dist/tools/update-project.d.ts +3 -3
- package/dist/tools/update-project.js +9 -8
- package/dist/tools/utils/api-utils.cjs +6 -5
- package/dist/tools/utils/api-utils.d.cts +5 -5
- package/dist/tools/utils/api-utils.d.cts.map +1 -1
- package/dist/tools/utils/api-utils.d.ts +7 -7
- package/dist/tools/utils/api-utils.d.ts.map +1 -1
- package/dist/tools/utils/api-utils.js +6 -5
- package/dist/tools/utils/defineTool.d.cts +2 -2
- package/dist/tools/utils/defineTool.d.ts +3 -3
- package/dist/tools/utils/fetch-utils.cjs +2 -2
- package/dist/tools/utils/fetch-utils.d.ts +1 -1
- package/dist/tools/utils/fetch-utils.js +2 -2
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +4 -4
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +4 -4
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +6 -6
- package/dist/tools/utils/issue-utils.js +4 -4
- package/dist/tools/utils/seer-utils.cjs +1 -1
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +4 -4
- package/dist/tools/utils/seer-utils.js +1 -1
- package/dist/tools/whoami.cjs +7 -6
- package/dist/tools/whoami.d.cts +2 -2
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +7 -6
- package/dist/tools-DvKm5uMs.js +44 -0
- package/dist/tools-DvKm5uMs.js.map +1 -0
- package/dist/tools-sQ2wM3Pi.cjs +49 -0
- package/dist/tools-sQ2wM3Pi.cjs.map +1 -0
- package/dist/transports/stdio.cjs +52 -41
- package/dist/transports/stdio.d.cts +1 -1
- package/dist/transports/stdio.d.ts +2 -2
- package/dist/transports/stdio.js +52 -41
- package/dist/types-6zHoEWAx.js +0 -0
- package/dist/{types-CoY5KVni.d.ts → types-B-8S69No.d.ts} +2 -2
- package/dist/{types-CoY5KVni.d.ts.map → types-B-8S69No.d.ts.map} +1 -1
- package/dist/{types-qB8a4WQT.d.ts → types-BOcoP3Na.d.ts} +2 -2
- package/dist/{types-qB8a4WQT.d.ts.map → types-BOcoP3Na.d.ts.map} +1 -1
- package/dist/{types-CUN-2OSS.d.cts → types-BV-G5sBp.d.cts} +4 -2
- package/dist/{types-CUN-2OSS.d.cts.map → types-BV-G5sBp.d.cts.map} +1 -1
- package/dist/{types-BAbu4Vzx.d.cts → types-BYtO24VE.d.cts} +2 -2
- package/dist/{types-BAbu4Vzx.d.cts.map → types-BYtO24VE.d.cts.map} +1 -1
- package/dist/{types-DkJtNDXU.d.ts → types-C1Fih0eQ.d.ts} +5 -3
- package/dist/{types-DkJtNDXU.d.ts.map → types-C1Fih0eQ.d.ts.map} +1 -1
- package/dist/types-DdloOYgD.cjs +0 -0
- package/dist/{types-D_mx318Q.d.cts → types-aOEJ0KgQ.d.cts} +2 -2
- package/dist/{types-D_mx318Q.d.cts.map → types-aOEJ0KgQ.d.cts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{update-issue-_4vzwHfZ.cjs → update-issue-D77PudUi.cjs} +11 -10
- package/dist/update-issue-D77PudUi.cjs.map +1 -0
- package/dist/{update-issue-ClbiTLyL.js → update-issue-ndy2PF5G.js} +11 -10
- package/dist/update-issue-ndy2PF5G.js.map +1 -0
- package/dist/{update-project-CExfO7tG.js → update-project-Bxsi-BG_.js} +4 -4
- package/dist/{update-project-CExfO7tG.js.map → update-project-Bxsi-BG_.js.map} +1 -1
- package/dist/{update-project-2EEnezbZ.cjs → update-project-DqECtbDA.cjs} +4 -4
- package/dist/{update-project-2EEnezbZ.cjs.map → update-project-DqECtbDA.cjs.map} +1 -1
- package/dist/url-utils-IqgSmI-B.js +152 -0
- package/dist/url-utils-IqgSmI-B.js.map +1 -0
- package/dist/url-utils-vJo2ER5v.cjs +206 -0
- package/dist/url-utils-vJo2ER5v.cjs.map +1 -0
- package/dist/utils/url-utils.cjs +6 -1
- package/dist/utils/url-utils.d.cts +43 -1
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +43 -1
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/utils-BwXbSgEI.d.ts +35 -0
- package/dist/utils-BwXbSgEI.d.ts.map +1 -0
- package/dist/utils-CqbeJfE1.cjs +138 -0
- package/dist/utils-CqbeJfE1.cjs.map +1 -0
- package/dist/utils-CtBGHj_N.d.cts +35 -0
- package/dist/utils-CtBGHj_N.d.cts.map +1 -0
- package/dist/utils-OgYE-imr.js +108 -0
- package/dist/utils-OgYE-imr.js.map +1 -0
- package/dist/version-Bj68uyCt.js +6 -0
- package/dist/{version-3e1twbPm.js.map → version-Bj68uyCt.js.map} +1 -1
- package/dist/{version-Cp9p-38J.cjs → version-CMS1IOUV.cjs} +2 -2
- package/dist/{version-Cp9p-38J.cjs.map → version-CMS1IOUV.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-m0N5F6BN.cjs → whoami-BOJHfdih.cjs} +2 -2
- package/dist/{whoami-m0N5F6BN.cjs.map → whoami-BOJHfdih.cjs.map} +1 -1
- package/dist/{whoami-DhoaHHY5.js → whoami-Bswhb72a.js} +2 -2
- package/dist/{whoami-DhoaHHY5.js.map → whoami-Bswhb72a.js.map} +1 -1
- package/dist/whoami-CoZJKpys.cjs +44 -0
- package/dist/whoami-CoZJKpys.cjs.map +1 -0
- package/dist/whoami-xBAWvzG4.js +32 -0
- package/dist/whoami-xBAWvzG4.js.map +1 -0
- package/package.json +14 -7
- package/dist/api-utils-B-9vnzoA.cjs.map +0 -1
- package/dist/api-utils-CHRiLf2Y.js.map +0 -1
- package/dist/client-C_lwH0jz.cjs.map +0 -1
- package/dist/client-D8vrUp2k.d.cts.map +0 -1
- package/dist/client-h32L1Hx5.d.ts.map +0 -1
- package/dist/client-pyNUFaLN.js.map +0 -1
- package/dist/create-dsn-CEEytIa4.js.map +0 -1
- package/dist/create-dsn-CI7MSiQu.cjs.map +0 -1
- package/dist/create-project-CoV1e-vp.js.map +0 -1
- package/dist/create-project-DnLKRG1p.cjs.map +0 -1
- package/dist/find-errors-BQFHuBHi.cjs +0 -100
- package/dist/find-errors-BQFHuBHi.cjs.map +0 -1
- package/dist/find-errors-CSPsT-Jp.js +0 -94
- package/dist/find-errors-CSPsT-Jp.js.map +0 -1
- package/dist/find-issues-BG80wLZw.cjs +0 -101
- package/dist/find-issues-BG80wLZw.cjs.map +0 -1
- package/dist/find-issues-DoUD8vP0.js +0 -95
- package/dist/find-issues-DoUD8vP0.js.map +0 -1
- package/dist/find-tags-BRaa2i-r.js +0 -39
- package/dist/find-tags-BRaa2i-r.js.map +0 -1
- package/dist/find-tags-BjibTJBm.cjs +0 -45
- package/dist/find-tags-BjibTJBm.cjs.map +0 -1
- package/dist/find-transactions-B0s_rr0H.cjs +0 -89
- package/dist/find-transactions-B0s_rr0H.cjs.map +0 -1
- package/dist/find-transactions-Cob_B_3u.js +0 -83
- package/dist/find-transactions-Cob_B_3u.js.map +0 -1
- package/dist/formatting-AXU4XsjJ.cjs.map +0 -1
- package/dist/formatting-DnSI0DHf.d.ts.map +0 -1
- package/dist/formatting-WGc5qrhv.js.map +0 -1
- package/dist/formatting-aGQ7M_2w.d.cts.map +0 -1
- package/dist/get-issue-details-BrEGybe0.js.map +0 -1
- package/dist/get-issue-details-EklkHsWi.cjs.map +0 -1
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +0 -1
- package/dist/prompts-Cuwmybyc.js.map +0 -1
- package/dist/prompts-uWAbMvLe.cjs.map +0 -1
- package/dist/resources-BlgeiG6C.cjs +0 -104
- package/dist/resources-BlgeiG6C.cjs.map +0 -1
- package/dist/resources-CwWOjB8_.js +0 -92
- package/dist/resources-CwWOjB8_.js.map +0 -1
- package/dist/schema-BW_fxx99.d.cts.map +0 -1
- package/dist/schema-B_cMyyJJ.cjs.map +0 -1
- package/dist/schema-DkWOa2-c.d.ts.map +0 -1
- package/dist/schema-WDk5Yqww.js.map +0 -1
- package/dist/server-9IEGGN8V.cjs.map +0 -1
- package/dist/server-BhNrW6bw.js.map +0 -1
- package/dist/tools/find-errors.cjs +0 -12
- package/dist/tools/find-errors.d.cts +0 -18
- package/dist/tools/find-errors.d.cts.map +0 -1
- package/dist/tools/find-errors.d.ts +0 -18
- package/dist/tools/find-errors.d.ts.map +0 -1
- package/dist/tools/find-errors.js +0 -12
- package/dist/tools/find-issues.cjs +0 -12
- package/dist/tools/find-issues.d.cts +0 -16
- package/dist/tools/find-issues.d.cts.map +0 -1
- package/dist/tools/find-issues.d.ts +0 -16
- package/dist/tools/find-issues.d.ts.map +0 -1
- package/dist/tools/find-issues.js +0 -12
- package/dist/tools/find-tags.cjs +0 -12
- package/dist/tools/find-tags.d.cts +0 -13
- package/dist/tools/find-tags.d.cts.map +0 -1
- package/dist/tools/find-tags.d.ts +0 -13
- package/dist/tools/find-tags.d.ts.map +0 -1
- package/dist/tools/find-tags.js +0 -12
- package/dist/tools/find-transactions.cjs +0 -12
- package/dist/tools/find-transactions.d.cts +0 -17
- package/dist/tools/find-transactions.d.cts.map +0 -1
- package/dist/tools/find-transactions.d.ts +0 -17
- package/dist/tools/find-transactions.d.ts.map +0 -1
- package/dist/tools/find-transactions.js +0 -12
- package/dist/tools-AYbI0sEf.js +0 -48
- package/dist/tools-AYbI0sEf.js.map +0 -1
- package/dist/tools-CwQFlJzn.cjs +0 -53
- package/dist/tools-CwQFlJzn.cjs.map +0 -1
- package/dist/update-issue-ClbiTLyL.js.map +0 -1
- package/dist/update-issue-_4vzwHfZ.cjs.map +0 -1
- package/dist/url-utils-C9hykWmk.cjs +0 -106
- package/dist/url-utils-C9hykWmk.cjs.map +0 -1
- package/dist/url-utils-DvZYfzPM.js +0 -82
- package/dist/url-utils-DvZYfzPM.js.map +0 -1
- package/dist/version-3e1twbPm.js +0 -6
- /package/dist/{api-client-CL1WDkw9.cjs → api-client-BWt6M7ij.cjs} +0 -0
- /package/dist/{api-client-ChL_0F2u.js → api-client-CNv_hbPO.js} +0 -0
- /package/dist/{fetch-utils-C0F4eH6S.cjs → fetch-utils-BqMx2KQr.js} +0 -0
- /package/dist/{fetch-utils-DlPjrSk2.js → fetch-utils-DeZcERfe.cjs} +0 -0
- /package/dist/{index-DVGDAddE.d.ts → index-DE1muTvw.d.ts} +0 -0
- /package/dist/{issue-utils-BbCfbiY8.js → issue-utils-BVAB6I-Z.js} +0 -0
- /package/dist/{issue-utils-DMKiif6C.cjs → issue-utils-pdbo-5LW.cjs} +0 -0
- /package/dist/{types-CCHsZshF.js → search-events-BBFPuvRq.cjs} +0 -0
- /package/dist/{types-MYBaygjr.cjs → search-events-bV3-kK78.js} +0 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/tools/search-events/config.ts
|
|
3
|
+
const BASE_COMMON_FIELDS = {
|
|
4
|
+
project: "Project slug",
|
|
5
|
+
timestamp: "When the event occurred",
|
|
6
|
+
environment: "Environment (production, staging, development)",
|
|
7
|
+
release: "Release version",
|
|
8
|
+
platform: "Platform (javascript, python, etc.)",
|
|
9
|
+
"user.id": "User ID",
|
|
10
|
+
"user.email": "User email",
|
|
11
|
+
"sdk.name": "SDK name",
|
|
12
|
+
"sdk.version": "SDK version"
|
|
13
|
+
};
|
|
14
|
+
const NUMERIC_FIELDS = {
|
|
15
|
+
spans: new Set([
|
|
16
|
+
"span.duration",
|
|
17
|
+
"span.self_time",
|
|
18
|
+
"transaction.duration",
|
|
19
|
+
"http.status_code",
|
|
20
|
+
"gen_ai.usage.input_tokens",
|
|
21
|
+
"gen_ai.usage.output_tokens",
|
|
22
|
+
"gen_ai.request.max_tokens"
|
|
23
|
+
]),
|
|
24
|
+
errors: new Set(["stack.lineno"]),
|
|
25
|
+
logs: new Set(["severity_number", "sentry.observed_timestamp_nanos"])
|
|
26
|
+
};
|
|
27
|
+
const DATASET_FIELDS = {
|
|
28
|
+
spans: {
|
|
29
|
+
"span.op": "Span operation type (e.g., http.client, db.query, cache.get)",
|
|
30
|
+
"span.description": "Detailed description of the span operation",
|
|
31
|
+
"span.duration": "Duration of the span in milliseconds",
|
|
32
|
+
"span.status": "Span status (ok, cancelled, unknown, etc.)",
|
|
33
|
+
"span.self_time": "Time spent in this span excluding child spans",
|
|
34
|
+
transaction: "Transaction name/route",
|
|
35
|
+
"transaction.duration": "Total transaction duration in milliseconds",
|
|
36
|
+
"transaction.op": "Transaction operation type",
|
|
37
|
+
"transaction.status": "Transaction status",
|
|
38
|
+
is_transaction: "Whether this span is a transaction (true/false)",
|
|
39
|
+
trace: "Trace ID",
|
|
40
|
+
"trace.span_id": "Span ID within the trace",
|
|
41
|
+
"trace.parent_span_id": "Parent span ID",
|
|
42
|
+
"http.method": "HTTP method (GET, POST, etc.)",
|
|
43
|
+
"http.status_code": "HTTP response status code",
|
|
44
|
+
"http.url": "Full HTTP URL",
|
|
45
|
+
"db.system": "Database system (postgresql, mysql, etc.)",
|
|
46
|
+
"db.operation": "Database operation (SELECT, INSERT, etc.)",
|
|
47
|
+
"gen_ai.system": "AI system (e.g., anthropic, openai)",
|
|
48
|
+
"gen_ai.request.model": "Model name (e.g., claude-3-5-sonnet-20241022)",
|
|
49
|
+
"gen_ai.operation.name": "Operation type (e.g., chat, completion)",
|
|
50
|
+
"gen_ai.usage.input_tokens": "Number of input tokens (numeric)",
|
|
51
|
+
"gen_ai.usage.output_tokens": "Number of output tokens (numeric)",
|
|
52
|
+
"mcp.tool.name": "Tool name (e.g., search_issues, search_events)",
|
|
53
|
+
"mcp.session.id": "MCP session identifier",
|
|
54
|
+
"count()": "Count of spans",
|
|
55
|
+
"count_unique(field)": "Count of unique values, e.g. count_unique(user.id)",
|
|
56
|
+
"avg(field)": "Average of numeric field, e.g. avg(span.duration)",
|
|
57
|
+
"sum(field)": "Sum of numeric field, e.g. sum(span.self_time)",
|
|
58
|
+
"min(field)": "Minimum of numeric field, e.g. min(span.duration)",
|
|
59
|
+
"max(field)": "Maximum of numeric field, e.g. max(span.duration)",
|
|
60
|
+
"p50(field)": "50th percentile (median), e.g. p50(span.duration)",
|
|
61
|
+
"p75(field)": "75th percentile, e.g. p75(span.duration)",
|
|
62
|
+
"p90(field)": "90th percentile, e.g. p90(span.duration)",
|
|
63
|
+
"p95(field)": "95th percentile, e.g. p95(span.duration)",
|
|
64
|
+
"p99(field)": "99th percentile, e.g. p99(span.duration)",
|
|
65
|
+
"p100(field)": "100th percentile (max), e.g. p100(span.duration)",
|
|
66
|
+
"epm()": "Events per minute rate",
|
|
67
|
+
"failure_rate()": "Percentage of failed spans"
|
|
68
|
+
},
|
|
69
|
+
errors: {
|
|
70
|
+
message: "Error message",
|
|
71
|
+
level: "Error level (error, warning, info, debug)",
|
|
72
|
+
"error.type": "Error type/exception class",
|
|
73
|
+
"error.value": "Error value/description",
|
|
74
|
+
"error.handled": "Whether the error was handled (true/false)",
|
|
75
|
+
culprit: "Code location that caused the error",
|
|
76
|
+
title: "Error title/grouping",
|
|
77
|
+
"stack.filename": "File where error occurred",
|
|
78
|
+
"stack.function": "Function where error occurred",
|
|
79
|
+
"stack.module": "Module where error occurred",
|
|
80
|
+
"stack.abs_path": "Absolute path to file",
|
|
81
|
+
"os.name": "Operating system name",
|
|
82
|
+
"browser.name": "Browser name",
|
|
83
|
+
"device.family": "Device family",
|
|
84
|
+
"count()": "Count of error events",
|
|
85
|
+
"count_unique(field)": "Count of unique values, e.g. count_unique(user.id)",
|
|
86
|
+
"count_if(field,equals,value)": "Conditional count, e.g. count_if(error.handled,equals,false)",
|
|
87
|
+
"last_seen()": "Most recent timestamp of the group",
|
|
88
|
+
"eps()": "Events per second rate",
|
|
89
|
+
"epm()": "Events per minute rate"
|
|
90
|
+
},
|
|
91
|
+
logs: {
|
|
92
|
+
message: "Log message",
|
|
93
|
+
severity: "Log severity level",
|
|
94
|
+
severity_number: "Numeric severity level",
|
|
95
|
+
"sentry.item_id": "Sentry item ID",
|
|
96
|
+
"sentry.observed_timestamp_nanos": "Observed timestamp in nanoseconds",
|
|
97
|
+
trace: "Trace ID",
|
|
98
|
+
"count()": "Count of log entries",
|
|
99
|
+
"count_unique(field)": "Count of unique values, e.g. count_unique(user.id)",
|
|
100
|
+
"avg(field)": "Average of numeric field, e.g. avg(severity_number)",
|
|
101
|
+
"sum(field)": "Sum of numeric field",
|
|
102
|
+
"min(field)": "Minimum of numeric field",
|
|
103
|
+
"max(field)": "Maximum of numeric field",
|
|
104
|
+
"p50(field)": "50th percentile (median)",
|
|
105
|
+
"p75(field)": "75th percentile",
|
|
106
|
+
"p90(field)": "90th percentile",
|
|
107
|
+
"p95(field)": "95th percentile",
|
|
108
|
+
"p99(field)": "99th percentile",
|
|
109
|
+
"p100(field)": "100th percentile (max)",
|
|
110
|
+
"epm()": "Events per minute rate"
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const DATASET_CONFIGS = {
|
|
114
|
+
errors: {
|
|
115
|
+
rules: `- For errors, focus on: message, level, error.type, error.handled
|
|
116
|
+
- Use level field for severity (error, warning, info, debug)
|
|
117
|
+
- Use error.handled:false for unhandled exceptions/crashes
|
|
118
|
+
- For filename searches: Use stack.filename for suffix-based search (e.g., stack.filename:"**/index.js" or stack.filename:"**/components/Button.tsx")
|
|
119
|
+
- When searching for errors in specific files, prefer including the parent folder to avoid ambiguity (e.g., stack.filename:"**/components/index.js" instead of just stack.filename:"**/index.js")`,
|
|
120
|
+
examples: `- "null pointer exceptions" →
|
|
121
|
+
{
|
|
122
|
+
"query": "error.type:\\"NullPointerException\\" OR message:\\"*null pointer*\\"",
|
|
123
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit"],
|
|
124
|
+
"sort": "-timestamp"
|
|
125
|
+
}
|
|
126
|
+
- "unhandled errors in production" →
|
|
127
|
+
{
|
|
128
|
+
"query": "error.handled:false AND environment:production",
|
|
129
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit", "error.handled", "environment"],
|
|
130
|
+
"sort": "-timestamp"
|
|
131
|
+
}
|
|
132
|
+
- "database connection errors" →
|
|
133
|
+
{
|
|
134
|
+
"query": "message:\\"*database*\\" AND message:\\"*connection*\\" AND level:error",
|
|
135
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit"],
|
|
136
|
+
"sort": "-timestamp"
|
|
137
|
+
}
|
|
138
|
+
- "show me user emails for authentication failures" →
|
|
139
|
+
{
|
|
140
|
+
"query": "message:\\"*auth*\\" AND (message:\\"*failed*\\" OR message:\\"*denied*\\")",
|
|
141
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit", "user.email"],
|
|
142
|
+
"sort": "-timestamp"
|
|
143
|
+
}
|
|
144
|
+
- "errors in Button.tsx file" →
|
|
145
|
+
{
|
|
146
|
+
"query": "stack.filename:\\"**/Button.tsx\\"",
|
|
147
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit", "stack.filename"],
|
|
148
|
+
"sort": "-timestamp"
|
|
149
|
+
}
|
|
150
|
+
- "count errors by type in production" →
|
|
151
|
+
{
|
|
152
|
+
"query": "environment:production",
|
|
153
|
+
"fields": ["error.type", "count()", "last_seen()"],
|
|
154
|
+
"sort": "-count()"
|
|
155
|
+
}
|
|
156
|
+
- "most common errors last 24h" →
|
|
157
|
+
{
|
|
158
|
+
"query": "level:error",
|
|
159
|
+
"fields": ["title", "error.type", "count()"],
|
|
160
|
+
"sort": "-count()"
|
|
161
|
+
}
|
|
162
|
+
- "unhandled errors rate by project" →
|
|
163
|
+
{
|
|
164
|
+
"query": "",
|
|
165
|
+
"fields": ["project", "count()", "count_if(error.handled,equals,false)", "epm()"],
|
|
166
|
+
"sort": "-count()"
|
|
167
|
+
}
|
|
168
|
+
- "errors in the last hour" →
|
|
169
|
+
{
|
|
170
|
+
"query": "",
|
|
171
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit"],
|
|
172
|
+
"sort": "-timestamp",
|
|
173
|
+
"timeRange": {"statsPeriod": "1h"}
|
|
174
|
+
}
|
|
175
|
+
- "database errors between June 19-20" →
|
|
176
|
+
{
|
|
177
|
+
"query": "message:\\"*database*\\"",
|
|
178
|
+
"fields": ["issue", "title", "project", "timestamp", "level", "message", "error.type", "culprit"],
|
|
179
|
+
"sort": "-timestamp",
|
|
180
|
+
"timeRange": {"start": "2025-06-19T00:00:00", "end": "2025-06-20T23:59:59"}
|
|
181
|
+
}
|
|
182
|
+
- "unique users affected by errors" →
|
|
183
|
+
{
|
|
184
|
+
"query": "level:error",
|
|
185
|
+
"fields": ["error.type", "count()", "count_unique(user.id)"],
|
|
186
|
+
"sort": "-count_unique(user.id)"
|
|
187
|
+
}
|
|
188
|
+
- "what is the most common error" →
|
|
189
|
+
{
|
|
190
|
+
"query": "",
|
|
191
|
+
"fields": ["title", "count()"],
|
|
192
|
+
"sort": "-count()"
|
|
193
|
+
}
|
|
194
|
+
- "errors by browser" →
|
|
195
|
+
{
|
|
196
|
+
"query": "has:user_agent.original",
|
|
197
|
+
"fields": ["user_agent.original", "count()"],
|
|
198
|
+
"sort": "-count()"
|
|
199
|
+
}
|
|
200
|
+
- "which user agents have the most errors" →
|
|
201
|
+
{
|
|
202
|
+
"query": "level:error AND has:user_agent.original",
|
|
203
|
+
"fields": ["user_agent.original", "count()", "count_unique(user.id)"],
|
|
204
|
+
"sort": "-count()"
|
|
205
|
+
}`
|
|
206
|
+
},
|
|
207
|
+
logs: {
|
|
208
|
+
rules: `- For logs, focus on: message, severity, severity_number
|
|
209
|
+
- Use severity field for log levels (fatal, error, warning, info, debug, trace)
|
|
210
|
+
- severity_number is numeric (21=fatal, 17=error, 13=warning, 9=info, 5=debug, 1=trace)
|
|
211
|
+
- IMPORTANT: For time-based filtering in logs, do NOT use timestamp filters in the query
|
|
212
|
+
- Instead, time filtering for logs is handled by the statsPeriod parameter (not part of the query string)
|
|
213
|
+
- Keep your query focused on message content, severity levels, and other attributes only
|
|
214
|
+
- When user asks for "error logs", interpret this as logs with severity:error`,
|
|
215
|
+
examples: `- "warning logs about memory" →
|
|
216
|
+
{
|
|
217
|
+
"query": "severity:warning AND message:\\"*memory*\\"",
|
|
218
|
+
"fields": ["timestamp", "project", "message", "severity", "trace"],
|
|
219
|
+
"sort": "-timestamp"
|
|
220
|
+
}
|
|
221
|
+
- "error logs from database" →
|
|
222
|
+
{
|
|
223
|
+
"query": "severity:error AND message:\\"*database*\\"",
|
|
224
|
+
"fields": ["timestamp", "project", "message", "severity", "trace"],
|
|
225
|
+
"sort": "-timestamp"
|
|
226
|
+
}
|
|
227
|
+
- "show me error logs with user context" →
|
|
228
|
+
{
|
|
229
|
+
"query": "severity:error",
|
|
230
|
+
"fields": ["timestamp", "project", "message", "severity", "trace", "user.id", "user.email"],
|
|
231
|
+
"sort": "-timestamp"
|
|
232
|
+
}
|
|
233
|
+
- "what is the most common log" →
|
|
234
|
+
{
|
|
235
|
+
"query": "",
|
|
236
|
+
"fields": ["message", "count()"],
|
|
237
|
+
"sort": "-count()"
|
|
238
|
+
}
|
|
239
|
+
- "most common error logs" →
|
|
240
|
+
{
|
|
241
|
+
"query": "severity:error",
|
|
242
|
+
"fields": ["message", "count()"],
|
|
243
|
+
"sort": "-count()"
|
|
244
|
+
}
|
|
245
|
+
- "count logs by severity" →
|
|
246
|
+
{
|
|
247
|
+
"query": "",
|
|
248
|
+
"fields": ["severity", "count()"],
|
|
249
|
+
"sort": "-count()"
|
|
250
|
+
}
|
|
251
|
+
- "log volume by project" →
|
|
252
|
+
{
|
|
253
|
+
"query": "",
|
|
254
|
+
"fields": ["project", "count()", "epm()"],
|
|
255
|
+
"sort": "-count()"
|
|
256
|
+
}`
|
|
257
|
+
},
|
|
258
|
+
spans: {
|
|
259
|
+
rules: `- For traces/spans, focus on: span.op, span.description, span.duration, transaction
|
|
260
|
+
- Use is_transaction:true for transaction spans only
|
|
261
|
+
- Use span.duration for performance queries (value is in milliseconds)
|
|
262
|
+
- IMPORTANT: Use has: queries for attribute-based filtering instead of span.op patterns:
|
|
263
|
+
- For HTTP requests: use "has:request.url" instead of "span.op:http*"
|
|
264
|
+
- For database queries: use "has:db.statement" or "has:db.system" instead of "span.op:db*"
|
|
265
|
+
- For AI/LLM/Agent calls: use "has:gen_ai.system" or "has:gen_ai.request.model" (OpenTelemetry GenAI semantic conventions)
|
|
266
|
+
- For MCP tool calls: use "has:mcp.tool.name" (Model Context Protocol semantic conventions)
|
|
267
|
+
- This approach is more flexible and captures all relevant spans regardless of their operation type
|
|
268
|
+
|
|
269
|
+
OpenTelemetry Semantic Conventions (2025 Stable):
|
|
270
|
+
Core Namespaces:
|
|
271
|
+
- gen_ai.*: GenAI attributes for AI/LLM/Agent calls (system, request.model, operation.name, usage.*)
|
|
272
|
+
- db.*: Database attributes (system, statement, operation, name) - STABLE
|
|
273
|
+
- http.*: HTTP attributes (method, status_code, url, request.*, response.*) - STABLE
|
|
274
|
+
- rpc.*: RPC attributes (system, service, method, grpc.*)
|
|
275
|
+
- messaging.*: Messaging attributes (system, operation, destination.*)
|
|
276
|
+
- faas.*: Function as a Service attributes (name, version, runtime)
|
|
277
|
+
- cloud.*: Cloud provider attributes (provider, region, zone)
|
|
278
|
+
- k8s.*: Kubernetes attributes (namespace, pod, container, node)
|
|
279
|
+
- host.*: Host attributes (name, type, arch, os.*)
|
|
280
|
+
- service.*: Service attributes (name, version, instance.id)
|
|
281
|
+
- process.*: Process attributes (pid, command, runtime.*)
|
|
282
|
+
|
|
283
|
+
Custom Namespaces:
|
|
284
|
+
- mcp.*: Model Context Protocol attributes for MCP tool calls (tool.name, session.id, transport)
|
|
285
|
+
|
|
286
|
+
Query Patterns:
|
|
287
|
+
- Use has:namespace.* to find spans with any attribute in that namespace
|
|
288
|
+
- Most common: has:gen_ai.system (agent calls), has:mcp.tool.name (MCP tools), has:db.statement (database), has:http.method (HTTP)`,
|
|
289
|
+
examples: `- "database queries" →
|
|
290
|
+
{
|
|
291
|
+
"query": "has:db.statement",
|
|
292
|
+
"fields": ["span.op", "span.description", "span.duration", "transaction", "timestamp", "project", "trace", "db.system", "db.statement"],
|
|
293
|
+
"sort": "-span.duration"
|
|
294
|
+
}
|
|
295
|
+
- "slow API calls over 5 seconds" →
|
|
296
|
+
{
|
|
297
|
+
"query": "has:request.url AND span.duration:>5000",
|
|
298
|
+
"fields": ["span.op", "span.description", "span.duration", "transaction", "timestamp", "project", "trace", "request.url", "request.method", "span.status_code"],
|
|
299
|
+
"sort": "-span.duration"
|
|
300
|
+
}
|
|
301
|
+
- "show me database queries with their SQL" →
|
|
302
|
+
{
|
|
303
|
+
"query": "has:db.statement",
|
|
304
|
+
"fields": ["span.op", "span.description", "span.duration", "transaction", "timestamp", "project", "trace", "db.system", "db.statement"],
|
|
305
|
+
"sort": "-span.duration"
|
|
306
|
+
}
|
|
307
|
+
- "average response time by endpoint" →
|
|
308
|
+
{
|
|
309
|
+
"query": "is_transaction:true",
|
|
310
|
+
"fields": ["transaction", "count()", "avg(span.duration)", "p95(span.duration)"],
|
|
311
|
+
"sort": "-avg(span.duration)"
|
|
312
|
+
}
|
|
313
|
+
- "slowest database queries by p95" →
|
|
314
|
+
{
|
|
315
|
+
"query": "has:db.statement",
|
|
316
|
+
"fields": ["db.statement", "count()", "p50(span.duration)", "p95(span.duration)", "max(span.duration)"],
|
|
317
|
+
"sort": "-p95(span.duration)"
|
|
318
|
+
}
|
|
319
|
+
- "API calls in the last 30 minutes" →
|
|
320
|
+
{
|
|
321
|
+
"query": "has:request.url",
|
|
322
|
+
"fields": ["id", "span.op", "span.description", "span.duration", "transaction", "timestamp", "project", "trace", "request.url", "request.method"],
|
|
323
|
+
"sort": "-timestamp",
|
|
324
|
+
"timeRange": {"statsPeriod": "30m"}
|
|
325
|
+
}
|
|
326
|
+
- "most common transaction" →
|
|
327
|
+
{
|
|
328
|
+
"query": "is_transaction:true",
|
|
329
|
+
"fields": ["transaction", "count()"],
|
|
330
|
+
"sort": "-count()"
|
|
331
|
+
}
|
|
332
|
+
- "top 10 tool call spans by usage" →
|
|
333
|
+
{
|
|
334
|
+
"query": "has:mcp.tool.name",
|
|
335
|
+
"fields": ["mcp.tool.name", "count()"],
|
|
336
|
+
"sort": "-count()"
|
|
337
|
+
}
|
|
338
|
+
- "top 10 agent call spans by usage" →
|
|
339
|
+
{
|
|
340
|
+
"query": "has:gen_ai.system",
|
|
341
|
+
"fields": ["gen_ai.system", "gen_ai.request.model", "count()"],
|
|
342
|
+
"sort": "-count()"
|
|
343
|
+
}
|
|
344
|
+
- "slowest AI/LLM calls" →
|
|
345
|
+
{
|
|
346
|
+
"query": "has:gen_ai.request.model",
|
|
347
|
+
"fields": ["gen_ai.system", "gen_ai.request.model", "span.duration", "transaction", "timestamp", "project", "trace", "gen_ai.operation.name"],
|
|
348
|
+
"sort": "-span.duration"
|
|
349
|
+
}
|
|
350
|
+
- "agent calls by model usage" →
|
|
351
|
+
{
|
|
352
|
+
"query": "has:gen_ai.request.model",
|
|
353
|
+
"fields": ["gen_ai.request.model", "count()"],
|
|
354
|
+
"sort": "-count()"
|
|
355
|
+
}
|
|
356
|
+
- "average agent call duration by model" →
|
|
357
|
+
{
|
|
358
|
+
"query": "has:gen_ai.request.model",
|
|
359
|
+
"fields": ["gen_ai.request.model", "count()", "avg(span.duration)", "p95(span.duration)"],
|
|
360
|
+
"sort": "-avg(span.duration)"
|
|
361
|
+
}
|
|
362
|
+
- "token usage by AI system" →
|
|
363
|
+
{
|
|
364
|
+
"query": "has:gen_ai.usage.input_tokens",
|
|
365
|
+
"fields": ["gen_ai.system", "sum(gen_ai.usage.input_tokens)", "sum(gen_ai.usage.output_tokens)", "count()"],
|
|
366
|
+
"sort": "-sum(gen_ai.usage.input_tokens)"
|
|
367
|
+
}
|
|
368
|
+
- "how many tokens used today" →
|
|
369
|
+
{
|
|
370
|
+
"query": "has:gen_ai.usage.input_tokens",
|
|
371
|
+
"fields": ["sum(gen_ai.usage.input_tokens)", "sum(gen_ai.usage.output_tokens)", "count()"],
|
|
372
|
+
"sort": "-sum(gen_ai.usage.input_tokens)",
|
|
373
|
+
"timeRange": {"statsPeriod": "24h"}
|
|
374
|
+
}
|
|
375
|
+
- "total input tokens by model" →
|
|
376
|
+
{
|
|
377
|
+
"query": "has:gen_ai.usage.input_tokens",
|
|
378
|
+
"fields": ["gen_ai.request.model", "sum(gen_ai.usage.input_tokens)", "count()"],
|
|
379
|
+
"sort": "-sum(gen_ai.usage.input_tokens)"
|
|
380
|
+
}
|
|
381
|
+
- "tokens used this week" →
|
|
382
|
+
{
|
|
383
|
+
"query": "has:gen_ai.usage.input_tokens",
|
|
384
|
+
"fields": ["sum(gen_ai.usage.input_tokens)", "sum(gen_ai.usage.output_tokens)", "count()"],
|
|
385
|
+
"sort": "-sum(gen_ai.usage.input_tokens)",
|
|
386
|
+
"timeRange": {"statsPeriod": "7d"}
|
|
387
|
+
}
|
|
388
|
+
- "which user agents have the most tool calls yesterday" →
|
|
389
|
+
{
|
|
390
|
+
"query": "has:mcp.tool.name AND has:user_agent.original",
|
|
391
|
+
"fields": ["user_agent.original", "count()"],
|
|
392
|
+
"sort": "-count()",
|
|
393
|
+
"timeRange": {"statsPeriod": "24h"}
|
|
394
|
+
}
|
|
395
|
+
- "top 10 browsers by API calls" →
|
|
396
|
+
{
|
|
397
|
+
"query": "has:http.method AND has:user_agent.original",
|
|
398
|
+
"fields": ["user_agent.original", "count()"],
|
|
399
|
+
"sort": "-count()"
|
|
400
|
+
}
|
|
401
|
+
- "most common clients making database queries" →
|
|
402
|
+
{
|
|
403
|
+
"query": "has:db.statement AND has:user_agent.original",
|
|
404
|
+
"fields": ["user_agent.original", "count()", "avg(span.duration)"],
|
|
405
|
+
"sort": "-count()"
|
|
406
|
+
}`
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
const RECOMMENDED_FIELDS = {
|
|
410
|
+
errors: {
|
|
411
|
+
basic: [
|
|
412
|
+
"issue",
|
|
413
|
+
"title",
|
|
414
|
+
"project",
|
|
415
|
+
"timestamp",
|
|
416
|
+
"level",
|
|
417
|
+
"message",
|
|
418
|
+
"error.type",
|
|
419
|
+
"culprit"
|
|
420
|
+
],
|
|
421
|
+
description: "Basic error information including issue ID, title, timestamp, severity, and location"
|
|
422
|
+
},
|
|
423
|
+
logs: {
|
|
424
|
+
basic: [
|
|
425
|
+
"timestamp",
|
|
426
|
+
"project",
|
|
427
|
+
"message",
|
|
428
|
+
"severity",
|
|
429
|
+
"trace"
|
|
430
|
+
],
|
|
431
|
+
description: "Essential log entry information"
|
|
432
|
+
},
|
|
433
|
+
spans: {
|
|
434
|
+
basic: [
|
|
435
|
+
"id",
|
|
436
|
+
"span.op",
|
|
437
|
+
"span.description",
|
|
438
|
+
"span.duration",
|
|
439
|
+
"transaction",
|
|
440
|
+
"timestamp",
|
|
441
|
+
"project",
|
|
442
|
+
"trace"
|
|
443
|
+
],
|
|
444
|
+
description: "Core span/trace information including span ID, operation, duration, and trace context"
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
//#endregion
|
|
449
|
+
Object.defineProperty(exports, 'BASE_COMMON_FIELDS', {
|
|
450
|
+
enumerable: true,
|
|
451
|
+
get: function () {
|
|
452
|
+
return BASE_COMMON_FIELDS;
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
Object.defineProperty(exports, 'DATASET_CONFIGS', {
|
|
456
|
+
enumerable: true,
|
|
457
|
+
get: function () {
|
|
458
|
+
return DATASET_CONFIGS;
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
Object.defineProperty(exports, 'DATASET_FIELDS', {
|
|
462
|
+
enumerable: true,
|
|
463
|
+
get: function () {
|
|
464
|
+
return DATASET_FIELDS;
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
Object.defineProperty(exports, 'NUMERIC_FIELDS', {
|
|
468
|
+
enumerable: true,
|
|
469
|
+
get: function () {
|
|
470
|
+
return NUMERIC_FIELDS;
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
Object.defineProperty(exports, 'RECOMMENDED_FIELDS', {
|
|
474
|
+
enumerable: true,
|
|
475
|
+
get: function () {
|
|
476
|
+
return RECOMMENDED_FIELDS;
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
//# sourceMappingURL=config-CD-5FpOO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CD-5FpOO.cjs","names":["NUMERIC_FIELDS: Record<string, Set<string>>"],"sources":["../src/tools/search-events/config.ts"],"sourcesContent":["// Base fields common to all datasets\nexport const BASE_COMMON_FIELDS = {\n project: \"Project slug\",\n timestamp: \"When the event occurred\",\n environment: \"Environment (production, staging, development)\",\n release: \"Release version\",\n platform: \"Platform (javascript, python, etc.)\",\n \"user.id\": \"User ID\",\n \"user.email\": \"User email\",\n \"sdk.name\": \"SDK name\",\n \"sdk.version\": \"SDK version\",\n};\n\n// Known numeric fields for each dataset\nexport const NUMERIC_FIELDS: Record<string, Set<string>> = {\n spans: new Set([\n \"span.duration\",\n \"span.self_time\",\n \"transaction.duration\",\n \"http.status_code\",\n \"gen_ai.usage.input_tokens\",\n \"gen_ai.usage.output_tokens\",\n \"gen_ai.request.max_tokens\",\n ]),\n errors: new Set([\n // Most error fields are strings/categories\n \"stack.lineno\",\n ]),\n logs: new Set([\"severity_number\", \"sentry.observed_timestamp_nanos\"]),\n};\n\n// Dataset-specific field definitions\nexport const DATASET_FIELDS = {\n spans: {\n // Span-specific fields\n \"span.op\": \"Span operation type (e.g., http.client, db.query, cache.get)\",\n \"span.description\": \"Detailed description of the span operation\",\n \"span.duration\": \"Duration of the span in milliseconds\",\n \"span.status\": \"Span status (ok, cancelled, unknown, etc.)\",\n \"span.self_time\": \"Time spent in this span excluding child spans\",\n\n // Transaction fields\n transaction: \"Transaction name/route\",\n \"transaction.duration\": \"Total transaction duration in milliseconds\",\n \"transaction.op\": \"Transaction operation type\",\n \"transaction.status\": \"Transaction status\",\n is_transaction: \"Whether this span is a transaction (true/false)\",\n\n // Trace fields\n trace: \"Trace ID\",\n \"trace.span_id\": \"Span ID within the trace\",\n \"trace.parent_span_id\": \"Parent span ID\",\n\n // HTTP fields\n \"http.method\": \"HTTP method (GET, POST, etc.)\",\n \"http.status_code\": \"HTTP response status code\",\n \"http.url\": \"Full HTTP URL\",\n\n // Database fields\n \"db.system\": \"Database system (postgresql, mysql, etc.)\",\n \"db.operation\": \"Database operation (SELECT, INSERT, etc.)\",\n\n // OpenTelemetry attribute namespaces for semantic queries\n // Use has:namespace.* to find spans with any attribute in that namespace\n // GenAI namespace (gen_ai.*) - for AI/LLM/Agent calls\n \"gen_ai.system\": \"AI system (e.g., anthropic, openai)\",\n \"gen_ai.request.model\": \"Model name (e.g., claude-3-5-sonnet-20241022)\",\n \"gen_ai.operation.name\": \"Operation type (e.g., chat, completion)\",\n \"gen_ai.usage.input_tokens\": \"Number of input tokens (numeric)\",\n \"gen_ai.usage.output_tokens\": \"Number of output tokens (numeric)\",\n\n // MCP namespace (mcp.*) - for Model Context Protocol tool calls\n \"mcp.tool.name\": \"Tool name (e.g., search_issues, search_events)\",\n \"mcp.session.id\": \"MCP session identifier\",\n\n // Aggregate functions (SPANS dataset only - require numeric fields except count/count_unique)\n \"count()\": \"Count of spans\",\n \"count_unique(field)\": \"Count of unique values, e.g. count_unique(user.id)\",\n \"avg(field)\": \"Average of numeric field, e.g. avg(span.duration)\",\n \"sum(field)\": \"Sum of numeric field, e.g. sum(span.self_time)\",\n \"min(field)\": \"Minimum of numeric field, e.g. min(span.duration)\",\n \"max(field)\": \"Maximum of numeric field, e.g. max(span.duration)\",\n \"p50(field)\": \"50th percentile (median), e.g. p50(span.duration)\",\n \"p75(field)\": \"75th percentile, e.g. p75(span.duration)\",\n \"p90(field)\": \"90th percentile, e.g. p90(span.duration)\",\n \"p95(field)\": \"95th percentile, e.g. p95(span.duration)\",\n \"p99(field)\": \"99th percentile, e.g. p99(span.duration)\",\n \"p100(field)\": \"100th percentile (max), e.g. p100(span.duration)\",\n \"epm()\": \"Events per minute rate\",\n \"failure_rate()\": \"Percentage of failed spans\",\n },\n errors: {\n // Error-specific fields\n message: \"Error message\",\n level: \"Error level (error, warning, info, debug)\",\n \"error.type\": \"Error type/exception class\",\n \"error.value\": \"Error value/description\",\n \"error.handled\": \"Whether the error was handled (true/false)\",\n culprit: \"Code location that caused the error\",\n title: \"Error title/grouping\",\n\n // Stack trace fields\n \"stack.filename\": \"File where error occurred\",\n \"stack.function\": \"Function where error occurred\",\n \"stack.module\": \"Module where error occurred\",\n \"stack.abs_path\": \"Absolute path to file\",\n\n // Additional context fields\n \"os.name\": \"Operating system name\",\n \"browser.name\": \"Browser name\",\n \"device.family\": \"Device family\",\n\n // Aggregate functions (ERRORS dataset only)\n \"count()\": \"Count of error events\",\n \"count_unique(field)\": \"Count of unique values, e.g. count_unique(user.id)\",\n \"count_if(field,equals,value)\":\n \"Conditional count, e.g. count_if(error.handled,equals,false)\",\n \"last_seen()\": \"Most recent timestamp of the group\",\n \"eps()\": \"Events per second rate\",\n \"epm()\": \"Events per minute rate\",\n },\n logs: {\n // Log-specific fields\n message: \"Log message\",\n severity: \"Log severity level\",\n severity_number: \"Numeric severity level\",\n \"sentry.item_id\": \"Sentry item ID\",\n \"sentry.observed_timestamp_nanos\": \"Observed timestamp in nanoseconds\",\n\n // Trace context\n trace: \"Trace ID\",\n\n // Aggregate functions (LOGS dataset only - require numeric fields except count/count_unique)\n \"count()\": \"Count of log entries\",\n \"count_unique(field)\": \"Count of unique values, e.g. count_unique(user.id)\",\n \"avg(field)\": \"Average of numeric field, e.g. avg(severity_number)\",\n \"sum(field)\": \"Sum of numeric field\",\n \"min(field)\": \"Minimum of numeric field\",\n \"max(field)\": \"Maximum of numeric field\",\n \"p50(field)\": \"50th percentile (median)\",\n \"p75(field)\": \"75th percentile\",\n \"p90(field)\": \"90th percentile\",\n \"p95(field)\": \"95th percentile\",\n \"p99(field)\": \"99th percentile\",\n \"p100(field)\": \"100th percentile (max)\",\n \"epm()\": \"Events per minute rate\",\n },\n};\n\n// Dataset-specific rules and examples\nexport const DATASET_CONFIGS = {\n errors: {\n rules: `- For errors, focus on: message, level, error.type, error.handled\n- Use level field for severity (error, warning, info, debug)\n- Use error.handled:false for unhandled exceptions/crashes\n- For filename searches: Use stack.filename for suffix-based search (e.g., stack.filename:\"**/index.js\" or stack.filename:\"**/components/Button.tsx\")\n- When searching for errors in specific files, prefer including the parent folder to avoid ambiguity (e.g., stack.filename:\"**/components/index.js\" instead of just stack.filename:\"**/index.js\")`,\n examples: `- \"null pointer exceptions\" → \n {\n \"query\": \"error.type:\\\\\"NullPointerException\\\\\" OR message:\\\\\"*null pointer*\\\\\"\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\"],\n \"sort\": \"-timestamp\"\n }\n- \"unhandled errors in production\" → \n {\n \"query\": \"error.handled:false AND environment:production\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\", \"error.handled\", \"environment\"],\n \"sort\": \"-timestamp\"\n }\n- \"database connection errors\" → \n {\n \"query\": \"message:\\\\\"*database*\\\\\" AND message:\\\\\"*connection*\\\\\" AND level:error\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\"],\n \"sort\": \"-timestamp\"\n }\n- \"show me user emails for authentication failures\" → \n {\n \"query\": \"message:\\\\\"*auth*\\\\\" AND (message:\\\\\"*failed*\\\\\" OR message:\\\\\"*denied*\\\\\")\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\", \"user.email\"],\n \"sort\": \"-timestamp\"\n }\n- \"errors in Button.tsx file\" → \n {\n \"query\": \"stack.filename:\\\\\"**/Button.tsx\\\\\"\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\", \"stack.filename\"],\n \"sort\": \"-timestamp\"\n }\n- \"count errors by type in production\" → \n {\n \"query\": \"environment:production\",\n \"fields\": [\"error.type\", \"count()\", \"last_seen()\"],\n \"sort\": \"-count()\"\n }\n- \"most common errors last 24h\" → \n {\n \"query\": \"level:error\",\n \"fields\": [\"title\", \"error.type\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"unhandled errors rate by project\" → \n {\n \"query\": \"\",\n \"fields\": [\"project\", \"count()\", \"count_if(error.handled,equals,false)\", \"epm()\"],\n \"sort\": \"-count()\"\n }\n- \"errors in the last hour\" → \n {\n \"query\": \"\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\"],\n \"sort\": \"-timestamp\",\n \"timeRange\": {\"statsPeriod\": \"1h\"}\n }\n- \"database errors between June 19-20\" → \n {\n \"query\": \"message:\\\\\"*database*\\\\\"\",\n \"fields\": [\"issue\", \"title\", \"project\", \"timestamp\", \"level\", \"message\", \"error.type\", \"culprit\"],\n \"sort\": \"-timestamp\",\n \"timeRange\": {\"start\": \"2025-06-19T00:00:00\", \"end\": \"2025-06-20T23:59:59\"}\n }\n- \"unique users affected by errors\" → \n {\n \"query\": \"level:error\",\n \"fields\": [\"error.type\", \"count()\", \"count_unique(user.id)\"],\n \"sort\": \"-count_unique(user.id)\"\n }\n- \"what is the most common error\" → \n {\n \"query\": \"\",\n \"fields\": [\"title\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"errors by browser\" → \n {\n \"query\": \"has:user_agent.original\",\n \"fields\": [\"user_agent.original\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"which user agents have the most errors\" → \n {\n \"query\": \"level:error AND has:user_agent.original\",\n \"fields\": [\"user_agent.original\", \"count()\", \"count_unique(user.id)\"],\n \"sort\": \"-count()\"\n }`,\n },\n logs: {\n rules: `- For logs, focus on: message, severity, severity_number\n- Use severity field for log levels (fatal, error, warning, info, debug, trace)\n- severity_number is numeric (21=fatal, 17=error, 13=warning, 9=info, 5=debug, 1=trace)\n- IMPORTANT: For time-based filtering in logs, do NOT use timestamp filters in the query\n- Instead, time filtering for logs is handled by the statsPeriod parameter (not part of the query string)\n- Keep your query focused on message content, severity levels, and other attributes only\n- When user asks for \"error logs\", interpret this as logs with severity:error`,\n examples: `- \"warning logs about memory\" → \n {\n \"query\": \"severity:warning AND message:\\\\\"*memory*\\\\\"\",\n \"fields\": [\"timestamp\", \"project\", \"message\", \"severity\", \"trace\"],\n \"sort\": \"-timestamp\"\n }\n- \"error logs from database\" → \n {\n \"query\": \"severity:error AND message:\\\\\"*database*\\\\\"\",\n \"fields\": [\"timestamp\", \"project\", \"message\", \"severity\", \"trace\"],\n \"sort\": \"-timestamp\"\n }\n- \"show me error logs with user context\" → \n {\n \"query\": \"severity:error\",\n \"fields\": [\"timestamp\", \"project\", \"message\", \"severity\", \"trace\", \"user.id\", \"user.email\"],\n \"sort\": \"-timestamp\"\n }\n- \"what is the most common log\" → \n {\n \"query\": \"\",\n \"fields\": [\"message\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"most common error logs\" → \n {\n \"query\": \"severity:error\",\n \"fields\": [\"message\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"count logs by severity\" → \n {\n \"query\": \"\",\n \"fields\": [\"severity\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"log volume by project\" → \n {\n \"query\": \"\",\n \"fields\": [\"project\", \"count()\", \"epm()\"],\n \"sort\": \"-count()\"\n }`,\n },\n spans: {\n rules: `- For traces/spans, focus on: span.op, span.description, span.duration, transaction\n- Use is_transaction:true for transaction spans only\n- Use span.duration for performance queries (value is in milliseconds)\n- IMPORTANT: Use has: queries for attribute-based filtering instead of span.op patterns:\n - For HTTP requests: use \"has:request.url\" instead of \"span.op:http*\"\n - For database queries: use \"has:db.statement\" or \"has:db.system\" instead of \"span.op:db*\"\n - For AI/LLM/Agent calls: use \"has:gen_ai.system\" or \"has:gen_ai.request.model\" (OpenTelemetry GenAI semantic conventions)\n - For MCP tool calls: use \"has:mcp.tool.name\" (Model Context Protocol semantic conventions)\n - This approach is more flexible and captures all relevant spans regardless of their operation type\n\nOpenTelemetry Semantic Conventions (2025 Stable):\nCore Namespaces:\n- gen_ai.*: GenAI attributes for AI/LLM/Agent calls (system, request.model, operation.name, usage.*)\n- db.*: Database attributes (system, statement, operation, name) - STABLE\n- http.*: HTTP attributes (method, status_code, url, request.*, response.*) - STABLE\n- rpc.*: RPC attributes (system, service, method, grpc.*)\n- messaging.*: Messaging attributes (system, operation, destination.*)\n- faas.*: Function as a Service attributes (name, version, runtime)\n- cloud.*: Cloud provider attributes (provider, region, zone)\n- k8s.*: Kubernetes attributes (namespace, pod, container, node)\n- host.*: Host attributes (name, type, arch, os.*)\n- service.*: Service attributes (name, version, instance.id)\n- process.*: Process attributes (pid, command, runtime.*)\n\nCustom Namespaces:\n- mcp.*: Model Context Protocol attributes for MCP tool calls (tool.name, session.id, transport)\n\nQuery Patterns:\n- Use has:namespace.* to find spans with any attribute in that namespace\n- Most common: has:gen_ai.system (agent calls), has:mcp.tool.name (MCP tools), has:db.statement (database), has:http.method (HTTP)`,\n examples: `- \"database queries\" → \n {\n \"query\": \"has:db.statement\",\n \"fields\": [\"span.op\", \"span.description\", \"span.duration\", \"transaction\", \"timestamp\", \"project\", \"trace\", \"db.system\", \"db.statement\"],\n \"sort\": \"-span.duration\"\n }\n- \"slow API calls over 5 seconds\" → \n {\n \"query\": \"has:request.url AND span.duration:>5000\",\n \"fields\": [\"span.op\", \"span.description\", \"span.duration\", \"transaction\", \"timestamp\", \"project\", \"trace\", \"request.url\", \"request.method\", \"span.status_code\"],\n \"sort\": \"-span.duration\"\n }\n- \"show me database queries with their SQL\" → \n {\n \"query\": \"has:db.statement\",\n \"fields\": [\"span.op\", \"span.description\", \"span.duration\", \"transaction\", \"timestamp\", \"project\", \"trace\", \"db.system\", \"db.statement\"],\n \"sort\": \"-span.duration\"\n }\n- \"average response time by endpoint\" → \n {\n \"query\": \"is_transaction:true\",\n \"fields\": [\"transaction\", \"count()\", \"avg(span.duration)\", \"p95(span.duration)\"],\n \"sort\": \"-avg(span.duration)\"\n }\n- \"slowest database queries by p95\" → \n {\n \"query\": \"has:db.statement\",\n \"fields\": [\"db.statement\", \"count()\", \"p50(span.duration)\", \"p95(span.duration)\", \"max(span.duration)\"],\n \"sort\": \"-p95(span.duration)\"\n }\n- \"API calls in the last 30 minutes\" → \n {\n \"query\": \"has:request.url\",\n \"fields\": [\"id\", \"span.op\", \"span.description\", \"span.duration\", \"transaction\", \"timestamp\", \"project\", \"trace\", \"request.url\", \"request.method\"],\n \"sort\": \"-timestamp\",\n \"timeRange\": {\"statsPeriod\": \"30m\"}\n }\n- \"most common transaction\" → \n {\n \"query\": \"is_transaction:true\",\n \"fields\": [\"transaction\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"top 10 tool call spans by usage\" → \n {\n \"query\": \"has:mcp.tool.name\",\n \"fields\": [\"mcp.tool.name\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"top 10 agent call spans by usage\" → \n {\n \"query\": \"has:gen_ai.system\",\n \"fields\": [\"gen_ai.system\", \"gen_ai.request.model\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"slowest AI/LLM calls\" → \n {\n \"query\": \"has:gen_ai.request.model\",\n \"fields\": [\"gen_ai.system\", \"gen_ai.request.model\", \"span.duration\", \"transaction\", \"timestamp\", \"project\", \"trace\", \"gen_ai.operation.name\"],\n \"sort\": \"-span.duration\"\n }\n- \"agent calls by model usage\" → \n {\n \"query\": \"has:gen_ai.request.model\",\n \"fields\": [\"gen_ai.request.model\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"average agent call duration by model\" → \n {\n \"query\": \"has:gen_ai.request.model\",\n \"fields\": [\"gen_ai.request.model\", \"count()\", \"avg(span.duration)\", \"p95(span.duration)\"],\n \"sort\": \"-avg(span.duration)\"\n }\n- \"token usage by AI system\" → \n {\n \"query\": \"has:gen_ai.usage.input_tokens\",\n \"fields\": [\"gen_ai.system\", \"sum(gen_ai.usage.input_tokens)\", \"sum(gen_ai.usage.output_tokens)\", \"count()\"],\n \"sort\": \"-sum(gen_ai.usage.input_tokens)\"\n }\n- \"how many tokens used today\" → \n {\n \"query\": \"has:gen_ai.usage.input_tokens\",\n \"fields\": [\"sum(gen_ai.usage.input_tokens)\", \"sum(gen_ai.usage.output_tokens)\", \"count()\"],\n \"sort\": \"-sum(gen_ai.usage.input_tokens)\",\n \"timeRange\": {\"statsPeriod\": \"24h\"}\n }\n- \"total input tokens by model\" → \n {\n \"query\": \"has:gen_ai.usage.input_tokens\",\n \"fields\": [\"gen_ai.request.model\", \"sum(gen_ai.usage.input_tokens)\", \"count()\"],\n \"sort\": \"-sum(gen_ai.usage.input_tokens)\"\n }\n- \"tokens used this week\" → \n {\n \"query\": \"has:gen_ai.usage.input_tokens\",\n \"fields\": [\"sum(gen_ai.usage.input_tokens)\", \"sum(gen_ai.usage.output_tokens)\", \"count()\"],\n \"sort\": \"-sum(gen_ai.usage.input_tokens)\",\n \"timeRange\": {\"statsPeriod\": \"7d\"}\n }\n- \"which user agents have the most tool calls yesterday\" → \n {\n \"query\": \"has:mcp.tool.name AND has:user_agent.original\",\n \"fields\": [\"user_agent.original\", \"count()\"],\n \"sort\": \"-count()\",\n \"timeRange\": {\"statsPeriod\": \"24h\"}\n }\n- \"top 10 browsers by API calls\" → \n {\n \"query\": \"has:http.method AND has:user_agent.original\",\n \"fields\": [\"user_agent.original\", \"count()\"],\n \"sort\": \"-count()\"\n }\n- \"most common clients making database queries\" → \n {\n \"query\": \"has:db.statement AND has:user_agent.original\",\n \"fields\": [\"user_agent.original\", \"count()\", \"avg(span.duration)\"],\n \"sort\": \"-count()\"\n }`,\n },\n};\n\n// Define recommended fields for each dataset\nexport const RECOMMENDED_FIELDS = {\n errors: {\n basic: [\n \"issue\",\n \"title\",\n \"project\",\n \"timestamp\",\n \"level\",\n \"message\",\n \"error.type\",\n \"culprit\",\n ],\n description:\n \"Basic error information including issue ID, title, timestamp, severity, and location\",\n },\n logs: {\n basic: [\"timestamp\", \"project\", \"message\", \"severity\", \"trace\"],\n description: \"Essential log entry information\",\n },\n spans: {\n basic: [\n \"id\",\n \"span.op\",\n \"span.description\",\n \"span.duration\",\n \"transaction\",\n \"timestamp\",\n \"project\",\n \"trace\",\n ],\n description:\n \"Core span/trace information including span ID, operation, duration, and trace context\",\n },\n};\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,SAAS;CACT,WAAW;CACX,aAAa;CACb,SAAS;CACT,UAAU;CACV,WAAW;CACX,cAAc;CACd,YAAY;CACZ,eAAe;AAChB;AAGD,MAAaA,iBAA8C;CACzD,OAAO,IAAI,IAAI;EACb;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,QAAQ,IAAI,IAAI,CAEd,cACD;CACD,MAAM,IAAI,IAAI,CAAC,mBAAmB,iCAAkC;AACrE;AAGD,MAAa,iBAAiB;CAC5B,OAAO;EAEL,WAAW;EACX,oBAAoB;EACpB,iBAAiB;EACjB,eAAe;EACf,kBAAkB;EAGlB,aAAa;EACb,wBAAwB;EACxB,kBAAkB;EAClB,sBAAsB;EACtB,gBAAgB;EAGhB,OAAO;EACP,iBAAiB;EACjB,wBAAwB;EAGxB,eAAe;EACf,oBAAoB;EACpB,YAAY;EAGZ,aAAa;EACb,gBAAgB;EAKhB,iBAAiB;EACjB,wBAAwB;EACxB,yBAAyB;EACzB,6BAA6B;EAC7B,8BAA8B;EAG9B,iBAAiB;EACjB,kBAAkB;EAGlB,WAAW;EACX,uBAAuB;EACvB,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,SAAS;EACT,kBAAkB;CACnB;CACD,QAAQ;EAEN,SAAS;EACT,OAAO;EACP,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,SAAS;EACT,OAAO;EAGP,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;EAGlB,WAAW;EACX,gBAAgB;EAChB,iBAAiB;EAGjB,WAAW;EACX,uBAAuB;EACvB,gCACE;EACF,eAAe;EACf,SAAS;EACT,SAAS;CACV;CACD,MAAM;EAEJ,SAAS;EACT,UAAU;EACV,iBAAiB;EACjB,kBAAkB;EAClB,mCAAmC;EAGnC,OAAO;EAGP,WAAW;EACX,uBAAuB;EACvB,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,SAAS;CACV;AACF;AAGD,MAAa,kBAAkB;CAC7B,QAAQ;EACN,QAAQ;;;;;EAKR,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFZ;CACD,MAAM;EACJ,QAAQ;;;;;;;EAOR,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CZ;CACD,OAAO;EACL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BR,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHZ;AACF;AAGD,MAAa,qBAAqB;CAChC,QAAQ;EACN,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EACD,aACE;CACH;CACD,MAAM;EACJ,OAAO;GAAC;GAAa;GAAW;GAAW;GAAY;EAAQ;EAC/D,aAAa;CACd;CACD,OAAO;EACL,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EACD,aACE;CACH;AACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/tools/search-issues/config.ts
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the search-issues agent
|
|
5
|
+
*/
|
|
6
|
+
const systemPrompt = `You are a Sentry issue search query translator. Convert natural language queries to Sentry issue search syntax.
|
|
7
|
+
|
|
8
|
+
IMPORTANT RULES:
|
|
9
|
+
1. Use Sentry issue search syntax, NOT SQL
|
|
10
|
+
2. Common fields: is, level, environment, release, assignedOrSuggested, firstSeen, lastSeen, userCount
|
|
11
|
+
3. Time ranges use relative notation: -24h, -7d, -30d
|
|
12
|
+
4. Comparisons: >, <, >=, <=
|
|
13
|
+
5. Boolean operators: AND, OR, NOT (or !)
|
|
14
|
+
6. Field values with spaces need quotes: environment:"dev server"
|
|
15
|
+
|
|
16
|
+
QUERY PATTERNS:
|
|
17
|
+
- Status: is:unresolved, is:resolved, is:ignored
|
|
18
|
+
- Severity: level:error, level:warning, level:fatal
|
|
19
|
+
- Time: firstSeen:-24h, lastSeen:-7d
|
|
20
|
+
- Impact: userCount:>100, eventCount:>1000
|
|
21
|
+
- Assignment: assignedOrSuggested:email@example.com
|
|
22
|
+
|
|
23
|
+
SORTING RULES:
|
|
24
|
+
1. CRITICAL: Sort MUST go in the separate "sort" field, NEVER in the "query" field
|
|
25
|
+
- WRONG: query: "is:unresolved sort:user" ← Sort syntax in query field is FORBIDDEN
|
|
26
|
+
- CORRECT: query: "is:unresolved", sort: "user" ← Sort in separate field
|
|
27
|
+
|
|
28
|
+
2. AVAILABLE SORT OPTIONS:
|
|
29
|
+
- date: Last seen (default)
|
|
30
|
+
- freq: Event frequency
|
|
31
|
+
- new: First seen
|
|
32
|
+
- user: User count
|
|
33
|
+
|
|
34
|
+
3. IMPORTANT: Query field is for filtering only (is:, level:, environment:, etc.)
|
|
35
|
+
|
|
36
|
+
'ME' REFERENCES:
|
|
37
|
+
- When the user says "assigned to me" or similar, you MUST use the whoami tool to get the current user's email
|
|
38
|
+
- Replace "me" with the actual email address in the query
|
|
39
|
+
- Example: "assigned to me" → use whoami tool → assignedOrSuggested:user@example.com
|
|
40
|
+
|
|
41
|
+
EXAMPLES:
|
|
42
|
+
"critical bugs" → query: "level:error is:unresolved", sort: "date"
|
|
43
|
+
"worst issues affecting the most users" → query: "is:unresolved", sort: "user"
|
|
44
|
+
"assigned to john@example.com" → query: "assignedOrSuggested:john@example.com", sort: "date"
|
|
45
|
+
|
|
46
|
+
NEVER: query: "is:unresolved sort:user" ← Sort goes in separate field!
|
|
47
|
+
|
|
48
|
+
Always use the issueFields tool to discover available fields when needed.
|
|
49
|
+
Use the whoami tool when you need to resolve 'me' references.`;
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
Object.defineProperty(exports, 'systemPrompt', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return systemPrompt;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=config-FWsgDbm7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-FWsgDbm7.cjs","names":[],"sources":["../src/tools/search-issues/config.ts"],"sourcesContent":["/**\n * Configuration for the search-issues agent\n */\n\nexport const systemPrompt = `You are a Sentry issue search query translator. Convert natural language queries to Sentry issue search syntax.\n\nIMPORTANT RULES:\n1. Use Sentry issue search syntax, NOT SQL\n2. Common fields: is, level, environment, release, assignedOrSuggested, firstSeen, lastSeen, userCount\n3. Time ranges use relative notation: -24h, -7d, -30d\n4. Comparisons: >, <, >=, <=\n5. Boolean operators: AND, OR, NOT (or !)\n6. Field values with spaces need quotes: environment:\"dev server\"\n\nQUERY PATTERNS:\n- Status: is:unresolved, is:resolved, is:ignored\n- Severity: level:error, level:warning, level:fatal\n- Time: firstSeen:-24h, lastSeen:-7d\n- Impact: userCount:>100, eventCount:>1000\n- Assignment: assignedOrSuggested:email@example.com\n\nSORTING RULES:\n1. CRITICAL: Sort MUST go in the separate \"sort\" field, NEVER in the \"query\" field\n - WRONG: query: \"is:unresolved sort:user\" ← Sort syntax in query field is FORBIDDEN\n - CORRECT: query: \"is:unresolved\", sort: \"user\" ← Sort in separate field\n\n2. AVAILABLE SORT OPTIONS:\n - date: Last seen (default)\n - freq: Event frequency \n - new: First seen\n - user: User count\n\n3. IMPORTANT: Query field is for filtering only (is:, level:, environment:, etc.)\n\n'ME' REFERENCES:\n- When the user says \"assigned to me\" or similar, you MUST use the whoami tool to get the current user's email\n- Replace \"me\" with the actual email address in the query\n- Example: \"assigned to me\" → use whoami tool → assignedOrSuggested:user@example.com\n\nEXAMPLES:\n\"critical bugs\" → query: \"level:error is:unresolved\", sort: \"date\"\n\"worst issues affecting the most users\" → query: \"is:unresolved\", sort: \"user\"\n\"assigned to john@example.com\" → query: \"assignedOrSuggested:john@example.com\", sort: \"date\"\n\nNEVER: query: \"is:unresolved sort:user\" ← Sort goes in separate field!\n\nAlways use the issueFields tool to discover available fields when needed.\nUse the whoami tool when you need to resolve 'me' references.`;\n"],"mappings":";;;;;AAIA,MAAa,gBAAgB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
4
|
-
const require_schema = require('./schema-
|
|
3
|
+
const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
|
|
4
|
+
const require_schema = require('./schema-DPL_hZXP.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
7
|
|
|
@@ -9,20 +9,22 @@ const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
|
9
9
|
var create_dsn_default = require_defineTool.defineTool({
|
|
10
10
|
name: "create_dsn",
|
|
11
11
|
description: [
|
|
12
|
-
"Create
|
|
12
|
+
"Create an additional DSN for an EXISTING project.",
|
|
13
13
|
"",
|
|
14
|
-
"
|
|
14
|
+
"🔍 USE THIS TOOL WHEN:",
|
|
15
|
+
"- Project already exists and needs additional DSN",
|
|
16
|
+
"- 'Create another DSN for project X'",
|
|
17
|
+
"- 'I need a production DSN for existing project'",
|
|
15
18
|
"",
|
|
16
|
-
"
|
|
17
|
-
"- Create a new DSN for a specific project",
|
|
19
|
+
"❌ DO NOT USE for new projects (use create_project instead)",
|
|
18
20
|
"",
|
|
19
|
-
"
|
|
20
|
-
"### Create a new DSN for the 'my-project' project",
|
|
21
|
+
"Be careful when using this tool!",
|
|
21
22
|
"",
|
|
23
|
+
"<examples>",
|
|
24
|
+
"### Create additional DSN for existing project",
|
|
22
25
|
"```",
|
|
23
26
|
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
24
27
|
"```",
|
|
25
|
-
"",
|
|
26
28
|
"</examples>",
|
|
27
29
|
"",
|
|
28
30
|
"<hints>",
|
|
@@ -62,4 +64,4 @@ Object.defineProperty(exports, 'create_dsn_default', {
|
|
|
62
64
|
return create_dsn_default;
|
|
63
65
|
}
|
|
64
66
|
});
|
|
65
|
-
//# sourceMappingURL=create-dsn-
|
|
67
|
+
//# sourceMappingURL=create-dsn-C6IPwoVO.cjs.map
|