@burdenoff/be-sdk 2026.1110.2 → 2026.1110.3
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/configs/eslint/index.js +1 -1
- package/configs/tsconfig/tsconfig.json +1 -1
- package/dist/EventQueueFactory-9NGZV9jl.js +1457 -0
- package/dist/EventQueueFactory-9NGZV9jl.js.map +1 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js +283 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js.map +1 -0
- package/dist/ai-credits/index.d.ts +2 -3
- package/dist/ai-credits/index.js +3 -4
- package/dist/ai-credits/index.js.map +1 -1
- package/dist/ai-credits-Ca-NNcVx.js +546 -0
- package/dist/ai-credits-Ca-NNcVx.js.map +1 -0
- package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
- package/dist/auth/index.d.ts +2 -77
- package/dist/auth/index.js +3 -7
- package/dist/auth/index.js.map +1 -1
- package/dist/auth-CEuBEBQN.js +228 -0
- package/dist/auth-CEuBEBQN.js.map +1 -0
- package/dist/cache/index.d.ts +2 -3
- package/dist/cache/index.js +3 -7
- package/dist/cache/index.js.map +1 -1
- package/dist/cache-CU0uLwcS.js +1837 -0
- package/dist/cache-CU0uLwcS.js.map +1 -0
- package/dist/captcha/index.d.ts +2 -1
- package/dist/captcha/index.js +3 -3
- package/dist/captcha/index.js.map +1 -1
- package/dist/captcha-BT7yh1YS.js +77 -0
- package/dist/captcha-BT7yh1YS.js.map +1 -0
- package/dist/client/internal-client.d.ts +4 -7
- package/dist/client/internal-client.js +172 -4
- package/dist/client/internal-client.js.map +1 -1
- package/dist/client-BgAEvDC2.d.ts +86 -0
- package/dist/client-DcZ3iGES.js +565 -0
- package/dist/client-DcZ3iGES.js.map +1 -0
- package/dist/collector-endpoint-iyQYeI50.js +50 -0
- package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
- package/dist/context-CZnXf2yb.js +247 -0
- package/dist/context-CZnXf2yb.js.map +1 -0
- package/dist/crypto/index.d.ts +2 -1
- package/dist/crypto/index.js +3 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto-DO9fM0FO.js +145 -0
- package/dist/crypto-DO9fM0FO.js.map +1 -0
- package/dist/database/index.d.ts +104 -108
- package/dist/database/index.js +468 -6
- package/dist/database/index.js.map +1 -1
- package/dist/dataloader/index.d.ts +2 -1
- package/dist/dataloader/index.js +3 -3
- package/dist/dataloader/index.js.map +1 -1
- package/dist/dataloader-DwpT3YoS.js +294 -0
- package/dist/dataloader-DwpT3YoS.js.map +1 -0
- package/dist/deployed-environment-p_Tdl3sT.js +38 -0
- package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
- package/dist/dist-BGKdXVy3.js +1718 -0
- package/dist/dist-BGKdXVy3.js.map +1 -0
- package/dist/env-DdaoGjIt.js +74 -0
- package/dist/env-DdaoGjIt.js.map +1 -0
- package/dist/event-queue/index.d.ts +2 -7
- package/dist/event-queue/index.js +7 -9
- package/dist/event-queue/index.js.map +1 -1
- package/dist/event-queue-Cw-YJPY_.js +1384 -0
- package/dist/event-queue-Cw-YJPY_.js.map +1 -0
- package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
- package/dist/export/index.d.ts +2 -2
- package/dist/export/index.js +3 -14
- package/dist/export/index.js.map +1 -1
- package/dist/export-B6fphx8a.js +642 -0
- package/dist/export-B6fphx8a.js.map +1 -0
- package/dist/feature-flags/index.d.ts +2 -10
- package/dist/feature-flags/index.js +3 -6
- package/dist/feature-flags/index.js.map +1 -1
- package/dist/feature-flags-71oDkrUe.js +422 -0
- package/dist/feature-flags-71oDkrUe.js.map +1 -0
- package/dist/files/index.d.ts +2 -3
- package/dist/files/index.js +3 -4
- package/dist/files/index.js.map +1 -1
- package/dist/files-DjH0099H.js +830 -0
- package/dist/files-DjH0099H.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -6
- package/dist/gateway/index.js +7 -13
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/security/index.d.ts +2 -2
- package/dist/gateway/security/index.js +3 -5
- package/dist/gateway/security/index.js.map +1 -1
- package/dist/gateway-DBFmxWks.js +50 -0
- package/dist/gateway-DBFmxWks.js.map +1 -0
- package/dist/graph/index.d.ts +3 -10
- package/dist/graph/index.js +4 -13
- package/dist/graph/index.js.map +1 -1
- package/dist/graph-DDYgIryR.js +2152 -0
- package/dist/graph-DDYgIryR.js.map +1 -0
- package/dist/graph-emitter-CdOXP7Tn.js +621 -0
- package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +4 -6
- package/dist/graphql/index.js.map +1 -1
- package/dist/graphql/services/index.d.ts +2 -24
- package/dist/graphql/services/index.js +3 -4
- package/dist/graphql/services/index.js.map +1 -1
- package/dist/graphql-DHAHHcww.js +161 -0
- package/dist/graphql-DHAHHcww.js.map +1 -0
- package/dist/graphql-DNkMkGBZ.d.ts +21 -0
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +3 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n-BBMYFd0P.js +860 -0
- package/dist/i18n-BBMYFd0P.js.map +1 -0
- package/dist/import-optional-peer-B82VYxeX.js +18 -0
- package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
- package/dist/index-3KOZ1zN9.d.ts +233 -0
- package/dist/index-BBqooJ52.d.ts +45 -0
- package/dist/index-BGzMYJsm.d.ts +209 -0
- package/dist/index-BKwHQtHQ.d.ts +63 -0
- package/dist/index-BMIMnp6T.d.ts +8 -0
- package/dist/index-BQDsNAMR.d.ts +81 -0
- package/dist/index-BVOL7458.d.ts +10 -0
- package/dist/index-BcqQs-Uq.d.ts +69 -0
- package/dist/index-BeVtqGO-.d.ts +208 -0
- package/dist/index-BiTzGUZP.d.ts +114 -0
- package/dist/index-BqYfCQSP.d.ts +500 -0
- package/dist/index-C0qLquY0.d.ts +150 -0
- package/dist/index-C5uEKchX.d.ts +60 -0
- package/dist/index-CDOqxSIi.d.ts +37 -0
- package/dist/index-CG6wj66Y.d.ts +148 -0
- package/dist/index-CIgoeobA.d.ts +145 -0
- package/dist/index-CPQDMSFS.d.ts +103 -0
- package/dist/index-CSRcgkVi.d.ts +23 -0
- package/dist/index-CZTnQIRU.d.ts +341 -0
- package/dist/index-CaM9JUcc.d.ts +144 -0
- package/dist/index-CkT2aUr3.d.ts +704 -0
- package/dist/index-CliOgq6L.d.ts +203 -0
- package/dist/index-CnzbJZP7.d.ts +999 -0
- package/dist/index-D6UeLAye.d.ts +63 -0
- package/dist/index-DGgh9DWn.d.ts +59 -0
- package/dist/index-DY3dNhMN.d.ts +420 -0
- package/dist/index-DZC-2o9R.d.ts +207 -0
- package/dist/index-DqbGqfAy.d.ts +127 -0
- package/dist/index-Dt1HJPTX.d.ts +12 -0
- package/dist/index-DtI6aBtB.d.ts +22 -0
- package/dist/index-FKohsiex.d.ts +38 -0
- package/dist/index-FbXPfen7.d.ts +132 -0
- package/dist/index-MArCb8Aq.d.ts +306 -0
- package/dist/index-N-huORcj.d.ts +303 -0
- package/dist/index-YOShAwkq.d.ts +45 -0
- package/dist/index-bZKZUvBu.d.ts +646 -0
- package/dist/index-yBSjMY32.d.ts +24 -0
- package/dist/index.d.ts +501 -544
- package/dist/index.js +1820 -2171
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +3 -16
- package/dist/init/index.js.map +1 -1
- package/dist/init-Dy3KhT6Y.js +325 -0
- package/dist/init-Dy3KhT6Y.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -4
- package/dist/instrumentation/index.js +5 -5
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation-xkkmDgJ0.js +1678 -0
- package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
- package/dist/lake/index.d.ts +50 -54
- package/dist/lake/index.js +169 -193
- package/dist/lake/index.js.map +1 -1
- package/dist/layer/index.d.ts +3 -2
- package/dist/layer/index.js +4 -5
- package/dist/layer/index.js.map +1 -1
- package/dist/layer-BZBZZWeV.d.ts +69 -0
- package/dist/layer-Bcix-WCl.js +105 -0
- package/dist/layer-Bcix-WCl.js.map +1 -0
- package/dist/layer-CEKy6cm8.js +252 -0
- package/dist/layer-CEKy6cm8.js.map +1 -0
- package/dist/lifecycle/index.d.ts +2 -1
- package/dist/lifecycle/index.js +3 -4
- package/dist/lifecycle/index.js.map +1 -1
- package/dist/lifecycle-DeoLSX0U.js +76 -0
- package/dist/lifecycle-DeoLSX0U.js.map +1 -0
- package/dist/logger/index.d.ts +2 -3
- package/dist/logger/index.js +3 -3
- package/dist/logger/index.js.map +1 -1
- package/dist/logger-B6rCpb7D.js +290 -0
- package/dist/logger-B6rCpb7D.js.map +1 -0
- package/dist/metrics/index.d.ts +13 -14
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/metrics-BrLwNUrb.js +52 -0
- package/dist/metrics-BrLwNUrb.js.map +1 -0
- package/dist/metrics-collector-C2eShrlW.js +922 -0
- package/dist/metrics-collector-C2eShrlW.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +3 -4
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware-CUxJVUpD.js +1243 -0
- package/dist/middleware-CUxJVUpD.js.map +1 -0
- package/dist/middleware-Cq0zFMGp.js +253 -0
- package/dist/middleware-Cq0zFMGp.js.map +1 -0
- package/dist/notifications/index.d.ts +2 -5
- package/dist/notifications/index.js +3 -6
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications-CdETrtFK.js +869 -0
- package/dist/notifications-CdETrtFK.js.map +1 -0
- package/dist/observability/index.d.ts +2 -3
- package/dist/observability/index.js +3 -4
- package/dist/observability/index.js.map +1 -1
- package/dist/observability-DBDXipTU.js +272 -0
- package/dist/observability-DBDXipTU.js.map +1 -0
- package/dist/platform/index.d.ts +2 -1
- package/dist/platform/index.js +3 -5
- package/dist/platform/index.js.map +1 -1
- package/dist/platform-DZwczW7v.js +1510 -0
- package/dist/platform-DZwczW7v.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -1
- package/dist/prisma/generator/index.js +97 -84
- package/dist/prisma/generator/index.js.map +1 -1
- package/dist/prisma/index.d.ts +4 -7
- package/dist/prisma/index.js +5 -12
- package/dist/prisma/index.js.map +1 -1
- package/dist/prisma-BzOOdt79.js +863 -0
- package/dist/prisma-BzOOdt79.js.map +1 -0
- package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
- package/dist/product-alias/index.d.ts +2 -1
- package/dist/product-alias/index.js +3 -3
- package/dist/product-alias/index.js.map +1 -1
- package/dist/product-alias-BPqtskMq.js +273 -0
- package/dist/product-alias-BPqtskMq.js.map +1 -0
- package/dist/rbac/index.d.ts +2 -122
- package/dist/rbac/index.js +3 -6
- package/dist/rbac/index.js.map +1 -1
- package/dist/rbac-BB9l9Xph.js +1486 -0
- package/dist/rbac-BB9l9Xph.js.map +1 -0
- package/dist/resource-caps/index.d.ts +66 -72
- package/dist/resource-caps/index.js +430 -5
- package/dist/resource-caps/index.js.map +1 -1
- package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
- package/dist/sdk-Dju9o-sq.js +124 -0
- package/dist/sdk-Dju9o-sq.js.map +1 -0
- package/dist/security-DIG-95Ic.js +1647 -0
- package/dist/security-DIG-95Ic.js.map +1 -0
- package/dist/server/index.d.ts +7 -164
- package/dist/server/index.js +2000 -1507
- package/dist/server/index.js.map +1 -1
- package/dist/service-jwt-Bu-WNA_-.js +80 -0
- package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
- package/dist/services-BWzfz7vG.js +102 -0
- package/dist/services-BWzfz7vG.js.map +1 -0
- package/dist/sharding/index.d.ts +41 -44
- package/dist/sharding/index.js +156 -137
- package/dist/sharding/index.js.map +1 -1
- package/dist/sharing/index.d.ts +2 -1
- package/dist/sharing/index.js +3 -4
- package/dist/sharing/index.js.map +1 -1
- package/dist/sharing-CflDsSJ-.js +911 -0
- package/dist/sharing-CflDsSJ-.js.map +1 -0
- package/dist/stub-BqwKn4eh.js +630 -0
- package/dist/stub-BqwKn4eh.js.map +1 -0
- package/dist/tags/index.d.ts +2 -3
- package/dist/tags/index.js +3 -4
- package/dist/tags/index.js.map +1 -1
- package/dist/tags-B5xpbgsk.js +868 -0
- package/dist/{chunk-PBZFAAOM.js.map → tags-B5xpbgsk.js.map} +1 -1
- package/dist/telemetry/index.d.ts +64 -76
- package/dist/telemetry/index.js +369 -201
- package/dist/telemetry/index.js.map +1 -1
- package/dist/temporal/index.d.ts +2 -148
- package/dist/temporal/index.js +3 -5
- package/dist/temporal/index.js.map +1 -1
- package/dist/temporal-B534uYK8.js +706 -0
- package/dist/temporal-B534uYK8.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -11
- package/dist/tracker/index.js +5 -20
- package/dist/tracker/index.js.map +1 -1
- package/dist/tracker-BQVoEFUo.js +839 -0
- package/dist/tracker-BQVoEFUo.js.map +1 -0
- package/dist/types-BYMYND1L.js +44 -0
- package/dist/types-BYMYND1L.js.map +1 -0
- package/dist/types-C6EKaS3V.d.ts +106 -0
- package/dist/types-CWybW61E.d.ts +323 -0
- package/dist/types-C_yfu3XK.d.ts +34 -0
- package/dist/types-Cj2RWXbz.js +90 -0
- package/dist/types-Cj2RWXbz.js.map +1 -0
- package/dist/types-DgaQqvxo.d.ts +70 -0
- package/dist/usage/index.d.ts +2 -213
- package/dist/usage/index.js +3 -15
- package/dist/usage/index.js.map +1 -1
- package/dist/usage-BKFZiWQn.js +682 -0
- package/dist/usage-BKFZiWQn.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils-DL85Tnbn.js +500 -0
- package/dist/utils-DL85Tnbn.js.map +1 -0
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +3 -3
- package/dist/validation/index.js.map +1 -1
- package/dist/validation-CPUITdMk.js +762 -0
- package/dist/validation-CPUITdMk.js.map +1 -0
- package/dist/workspace-extension-COrC0dYi.js +979 -0
- package/dist/workspace-extension-COrC0dYi.js.map +1 -0
- package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
- package/package.json +7 -10
- package/dist/EventQueueFactory-GXC3A7DH.js +0 -8
- package/dist/EventQueueFactory-GXC3A7DH.js.map +0 -1
- package/dist/chunk-4XIBXZ6J.js +0 -276
- package/dist/chunk-4XIBXZ6J.js.map +0 -1
- package/dist/chunk-554Z4C2K.js +0 -1006
- package/dist/chunk-554Z4C2K.js.map +0 -1
- package/dist/chunk-5CAFHK2Z.js +0 -107
- package/dist/chunk-5CAFHK2Z.js.map +0 -1
- package/dist/chunk-63ZXJ42X.js +0 -451
- package/dist/chunk-63ZXJ42X.js.map +0 -1
- package/dist/chunk-6XEXJATV.js +0 -304
- package/dist/chunk-6XEXJATV.js.map +0 -1
- package/dist/chunk-726AR6Q7.js +0 -1532
- package/dist/chunk-726AR6Q7.js.map +0 -1
- package/dist/chunk-A5F6Z5UE.js +0 -21
- package/dist/chunk-A5F6Z5UE.js.map +0 -1
- package/dist/chunk-A6DE32ZS.js +0 -1507
- package/dist/chunk-A6DE32ZS.js.map +0 -1
- package/dist/chunk-AXJDGQPE.js +0 -690
- package/dist/chunk-AXJDGQPE.js.map +0 -1
- package/dist/chunk-BJQOGOVW.js +0 -602
- package/dist/chunk-BJQOGOVW.js.map +0 -1
- package/dist/chunk-CFXWH2IS.js +0 -52
- package/dist/chunk-CFXWH2IS.js.map +0 -1
- package/dist/chunk-DRWH5XCJ.js +0 -876
- package/dist/chunk-DRWH5XCJ.js.map +0 -1
- package/dist/chunk-E4QNLVY4.js +0 -909
- package/dist/chunk-E4QNLVY4.js.map +0 -1
- package/dist/chunk-EBDHIL7V.js +0 -774
- package/dist/chunk-EBDHIL7V.js.map +0 -1
- package/dist/chunk-ELU7VL3E.js +0 -245
- package/dist/chunk-ELU7VL3E.js.map +0 -1
- package/dist/chunk-FZRODKIN.js +0 -31
- package/dist/chunk-FZRODKIN.js.map +0 -1
- package/dist/chunk-GCIB76AJ.js +0 -882
- package/dist/chunk-GCIB76AJ.js.map +0 -1
- package/dist/chunk-HC6MPUIH.js +0 -1571
- package/dist/chunk-HC6MPUIH.js.map +0 -1
- package/dist/chunk-HNMHPSAM.js +0 -272
- package/dist/chunk-HNMHPSAM.js.map +0 -1
- package/dist/chunk-HTLEGD3Q.js +0 -1480
- package/dist/chunk-HTLEGD3Q.js.map +0 -1
- package/dist/chunk-I3KOWRT3.js +0 -89
- package/dist/chunk-I3KOWRT3.js.map +0 -1
- package/dist/chunk-ID3WR4JS.js +0 -509
- package/dist/chunk-ID3WR4JS.js.map +0 -1
- package/dist/chunk-JS52ZHTK.js +0 -1346
- package/dist/chunk-JS52ZHTK.js.map +0 -1
- package/dist/chunk-JVMAQOA3.js +0 -521
- package/dist/chunk-JVMAQOA3.js.map +0 -1
- package/dist/chunk-KH4TRQCO.js +0 -1063
- package/dist/chunk-KH4TRQCO.js.map +0 -1
- package/dist/chunk-KJOSPVB2.js +0 -57
- package/dist/chunk-KJOSPVB2.js.map +0 -1
- package/dist/chunk-KO2ZXZ7W.js +0 -61
- package/dist/chunk-KO2ZXZ7W.js.map +0 -1
- package/dist/chunk-KS2HQCJR.js +0 -56
- package/dist/chunk-KS2HQCJR.js.map +0 -1
- package/dist/chunk-LA5KPWZ2.js +0 -413
- package/dist/chunk-LA5KPWZ2.js.map +0 -1
- package/dist/chunk-MESLAC5W.js +0 -574
- package/dist/chunk-MESLAC5W.js.map +0 -1
- package/dist/chunk-MWPYA2HD.js +0 -94
- package/dist/chunk-MWPYA2HD.js.map +0 -1
- package/dist/chunk-NUB5GQTU.js +0 -270
- package/dist/chunk-NUB5GQTU.js.map +0 -1
- package/dist/chunk-OBBCR6WY.js +0 -277
- package/dist/chunk-OBBCR6WY.js.map +0 -1
- package/dist/chunk-OQDSAOG3.js +0 -1908
- package/dist/chunk-OQDSAOG3.js.map +0 -1
- package/dist/chunk-OXNCBE7P.js +0 -971
- package/dist/chunk-OXNCBE7P.js.map +0 -1
- package/dist/chunk-PBZFAAOM.js +0 -941
- package/dist/chunk-PN6GIF3R.js +0 -1185
- package/dist/chunk-PN6GIF3R.js.map +0 -1
- package/dist/chunk-PYD44IHJ.js +0 -728
- package/dist/chunk-PYD44IHJ.js.map +0 -1
- package/dist/chunk-QVPIACWD.js +0 -679
- package/dist/chunk-QVPIACWD.js.map +0 -1
- package/dist/chunk-QWNNFE4P.js +0 -41
- package/dist/chunk-QWNNFE4P.js.map +0 -1
- package/dist/chunk-RU266375.js +0 -327
- package/dist/chunk-RU266375.js.map +0 -1
- package/dist/chunk-RYTSVGGA.js +0 -1624
- package/dist/chunk-RYTSVGGA.js.map +0 -1
- package/dist/chunk-RZOFS2BQ.js +0 -225
- package/dist/chunk-RZOFS2BQ.js.map +0 -1
- package/dist/chunk-SBS4S2PJ.js +0 -100
- package/dist/chunk-SBS4S2PJ.js.map +0 -1
- package/dist/chunk-SPRG6G6G.js +0 -530
- package/dist/chunk-SPRG6G6G.js.map +0 -1
- package/dist/chunk-STWFX5E2.js +0 -233
- package/dist/chunk-STWFX5E2.js.map +0 -1
- package/dist/chunk-UNASM5VJ.js +0 -419
- package/dist/chunk-UNASM5VJ.js.map +0 -1
- package/dist/chunk-VAT66FJA.js +0 -245
- package/dist/chunk-VAT66FJA.js.map +0 -1
- package/dist/chunk-VFCMR5GX.js +0 -49
- package/dist/chunk-VFCMR5GX.js.map +0 -1
- package/dist/chunk-VGAHZKNJ.js +0 -66
- package/dist/chunk-VGAHZKNJ.js.map +0 -1
- package/dist/chunk-VTJTAAXC.js +0 -627
- package/dist/chunk-VTJTAAXC.js.map +0 -1
- package/dist/chunk-VXVLKRU6.js +0 -758
- package/dist/chunk-VXVLKRU6.js.map +0 -1
- package/dist/chunk-WWUU5ETI.js +0 -163
- package/dist/chunk-WWUU5ETI.js.map +0 -1
- package/dist/chunk-XE4OXN2W.js +0 -10
- package/dist/chunk-XE4OXN2W.js.map +0 -1
- package/dist/chunk-XOJORS75.js +0 -1853
- package/dist/chunk-XOJORS75.js.map +0 -1
- package/dist/chunk-YMZEUTD2.js +0 -110
- package/dist/chunk-YMZEUTD2.js.map +0 -1
- package/dist/chunk-Z77BTSOK.js +0 -617
- package/dist/chunk-Z77BTSOK.js.map +0 -1
- package/dist/chunk-ZZK3WEDI.js +0 -181
- package/dist/chunk-ZZK3WEDI.js.map +0 -1
- package/dist/client-CCXpAZ2r.d.ts +0 -89
- package/dist/client-DSI_760t.d.ts +0 -36
- package/dist/client-JU6T3UPB.js +0 -11
- package/dist/client-JU6T3UPB.js.map +0 -1
- package/dist/dist-2X4Q7PJA.js +0 -1491
- package/dist/dist-2X4Q7PJA.js.map +0 -1
- package/dist/env-4UWSUS64.js +0 -4
- package/dist/env-4UWSUS64.js.map +0 -1
- package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
- package/dist/graphql-CMHMQjvd.d.ts +0 -23
- package/dist/i18n-Qm2AkPC-.d.ts +0 -33
- package/dist/index--yvpa6ay.d.ts +0 -83
- package/dist/index-4gKQKZ2B.d.ts +0 -71
- package/dist/index-5x0XMKXN.d.ts +0 -149
- package/dist/index-B70b5mYS.d.ts +0 -33
- package/dist/index-B8KrxO4j.d.ts +0 -755
- package/dist/index-BOuDKnqD.d.ts +0 -201
- package/dist/index-BTMt4OjA.d.ts +0 -201
- package/dist/index-BejbszA7.d.ts +0 -39
- package/dist/index-BkeOYZye.d.ts +0 -198
- package/dist/index-BuAj5nXg.d.ts +0 -83
- package/dist/index-BvkVcW8I.d.ts +0 -349
- package/dist/index-CWmH_-RZ.d.ts +0 -247
- package/dist/index-CbgWNcus.d.ts +0 -258
- package/dist/index-CmfPeQza.d.ts +0 -166
- package/dist/index-CmpG-zak.d.ts +0 -607
- package/dist/index-CoMKgL-p.d.ts +0 -12
- package/dist/index-D8HGwglK.d.ts +0 -541
- package/dist/index-DCaVm66D.d.ts +0 -1101
- package/dist/index-DE2w7E0d.d.ts +0 -83
- package/dist/index-DSOpj8DI.d.ts +0 -17
- package/dist/index-DW9q22GH.d.ts +0 -75
- package/dist/index-DnjJ9CwI.d.ts +0 -347
- package/dist/index-DwMJZ8PP.d.ts +0 -317
- package/dist/index-PaojfSdd.d.ts +0 -71
- package/dist/index-aHtYvc3i.d.ts +0 -284
- package/dist/index-e_18DzAg.d.ts +0 -18
- package/dist/index-ffmipXSA.d.ts +0 -55
- package/dist/index-joONjwLt.d.ts +0 -33
- package/dist/index-kssw5ziY.d.ts +0 -250
- package/dist/index-lFffh5-G.d.ts +0 -125
- package/dist/index-pxYge_6k.d.ts +0 -79
- package/dist/layer-Cv9vSwBx.d.ts +0 -70
- package/dist/pino-logger-H4HPW5P6.js +0 -5
- package/dist/pino-logger-H4HPW5P6.js.map +0 -1
- package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
- package/dist/sdk-L75WWUP3.js +0 -156
- package/dist/sdk-L75WWUP3.js.map +0 -1
- package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
- package/dist/types-Bo2wkjSP.d.ts +0 -35
- package/dist/types-DVpvrAhd.d.ts +0 -71
- package/dist/types-DgJ4lDYA.d.ts +0 -108
- package/dist/types-USOv09qy.d.ts +0 -327
- package/dist/workspace-guard-NXVYYBVJ.js +0 -5
- package/dist/workspace-guard-NXVYYBVJ.js.map +0 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { _ as isTransientAcquireError, a as PrismaEvent, b as PrismaClientConfig, c as PrismaLogLevel, d as configurePrismaLogging, f as createConnectionPool, g as installAcquireRetry, h as ensureServiceApplicationName, i as PrismaClientWrapper, l as PrismaQueryEvent, m as createPrismaClient, n as PrismaClientBase, o as PrismaLogDefinition, p as createPrismaAdapter, r as PrismaClientConstructorOptions, s as PrismaLogEvent, t as DatabaseReturnType, u as PrismaTransactionOptions, v as ConnectionState, y as DatabaseHealth } from "./client-BgAEvDC2.js";
|
|
2
|
+
import { n as GraphEventEmitter } from "./prisma-extension-Cfl09swM.js";
|
|
3
|
+
import { S as withWorkspaceContextSync, _ as resetCallerTransactionStateForTests, a as WorkspaceContext, b as setWorkspaceContext, c as buildTransactionContextStatement, d as getScopedWorkspaceContext, f as getWorkspaceContext, g as maybeTagConnection, h as maybeSetRlsGuc, i as TransactionContextStatement, l as defaultWorkspaceExtensionConfig, m as injectWhereWorkspaceId, n as PrismaQueryInternalParams, o as WorkspaceExtensionConfig, p as injectCreateFields, r as RawPrismaForCallerTransaction, s as addWorkspaceExtension, t as CallerTransaction, u as getCallerTransaction, v as runOperationInCallerTransaction, x as withWorkspaceContext, y as runOperationWithRlsGuc } from "./workspace-extension-DTFTdGVF.js";
|
|
4
|
+
interface DatabaseClientConfig extends PrismaClientConfig {
|
|
5
|
+
productName: string;
|
|
6
|
+
enableGraphExtension?: boolean;
|
|
7
|
+
graphEventEmitter?: GraphEventEmitter;
|
|
8
|
+
enableWorkspaceExtension?: boolean;
|
|
9
|
+
workspaceExtensionConfig?: WorkspaceExtensionConfig;
|
|
10
|
+
registerShutdownHandlers?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface DatabaseClient<T extends PrismaClientBase> {
|
|
13
|
+
db: T & {
|
|
14
|
+
client: T;
|
|
15
|
+
};
|
|
16
|
+
wrapper: PrismaClientWrapper<T>;
|
|
17
|
+
connect: (retries?: number, delay?: number) => Promise<void>;
|
|
18
|
+
disconnect: () => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
declare function createDatabaseClient<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, config: DatabaseClientConfig): DatabaseClient<T>;
|
|
21
|
+
interface PoolTuningEnv {
|
|
22
|
+
applicationName: string;
|
|
23
|
+
queryTimeoutMillis?: number;
|
|
24
|
+
statementTimeoutMillis?: number;
|
|
25
|
+
idleInTransactionTimeoutMillis?: number;
|
|
26
|
+
lockTimeoutMillis?: number;
|
|
27
|
+
}
|
|
28
|
+
declare function resolvePoolTuningFromEnv(productName: string): PoolTuningEnv;
|
|
29
|
+
declare function createDatabaseClientFromEnv<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, productName: string, overrides?: Partial<DatabaseClientConfig>): DatabaseClient<T>;
|
|
30
|
+
declare function initializeDatabase<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, productName: string, config?: Partial<DatabaseClientConfig>): DatabaseClient<T>;
|
|
31
|
+
declare function initializeDatabaseWithConfig<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, config: DatabaseClientConfig): DatabaseClient<T>;
|
|
32
|
+
declare function getDb<T extends PrismaClientBase = PrismaClientBase>(): DatabaseReturnType<T>;
|
|
33
|
+
declare function getDatabaseManager<T extends PrismaClientBase = PrismaClientBase>(): DatabaseClient<T>;
|
|
34
|
+
declare function isDatabaseInitialized(): boolean;
|
|
35
|
+
declare function getDatabaseProductName(): string | null;
|
|
36
|
+
declare function resetDatabaseManager(): Promise<void>;
|
|
37
|
+
declare function checkDatabaseHealth<T extends PrismaClientBase>(client: T): Promise<DatabaseHealth>;
|
|
38
|
+
declare function testConnection<T extends PrismaClientBase>(client: T): Promise<boolean>;
|
|
39
|
+
declare function getDatabaseVersion<T extends PrismaClientBase>(client: T): Promise<string | null>;
|
|
40
|
+
declare function getDatabaseStats<T extends PrismaClientBase>(client: T): Promise<{
|
|
41
|
+
health: DatabaseHealth;
|
|
42
|
+
version: string | null;
|
|
43
|
+
timestamp: Date;
|
|
44
|
+
}>;
|
|
45
|
+
interface FieldExtractionOptions {
|
|
46
|
+
excludeFields?: string[];
|
|
47
|
+
includeRelations?: boolean;
|
|
48
|
+
customFilter?: (field: {
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
isRelation: boolean;
|
|
52
|
+
}) => boolean;
|
|
53
|
+
}
|
|
54
|
+
interface FieldExtractionResult {
|
|
55
|
+
fields: string[];
|
|
56
|
+
metadata: {
|
|
57
|
+
totalFields: number;
|
|
58
|
+
excludedCount: number;
|
|
59
|
+
excludedFields: string[];
|
|
60
|
+
relationFields: number;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
type ModelFieldsMap = Record<string, {
|
|
64
|
+
fields: string[];
|
|
65
|
+
relations: string[];
|
|
66
|
+
}>;
|
|
67
|
+
declare function loadGeneratedFields(generatedFieldsPath: string): ModelFieldsMap;
|
|
68
|
+
declare function extractFieldsFromModel(modelName: string, modelFieldsMap: ModelFieldsMap, options?: FieldExtractionOptions): FieldExtractionResult;
|
|
69
|
+
declare function getModelFields(modelName: string, modelFieldsMap: ModelFieldsMap, includeRelations?: boolean): string[];
|
|
70
|
+
declare function hasModel(modelName: string, modelFieldsMap: ModelFieldsMap): boolean;
|
|
71
|
+
declare function getAllModelNames(modelFieldsMap: ModelFieldsMap): string[];
|
|
72
|
+
interface ContextFilterInput {
|
|
73
|
+
workspaceId?: string | null;
|
|
74
|
+
userId?: string | null;
|
|
75
|
+
projectId?: string | null;
|
|
76
|
+
appId?: string | null;
|
|
77
|
+
productId?: string | null;
|
|
78
|
+
organizationId?: string | null;
|
|
79
|
+
}
|
|
80
|
+
interface OperationContext extends ContextFilterInput {
|
|
81
|
+
custom?: Record<string, unknown> | null;
|
|
82
|
+
}
|
|
83
|
+
type PrismaJsonFilter = Record<string, unknown>;
|
|
84
|
+
type ContextWhereCondition = {
|
|
85
|
+
context: PrismaJsonFilter;
|
|
86
|
+
} | {
|
|
87
|
+
OR: Array<{
|
|
88
|
+
context: PrismaJsonFilter;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
type JsonValue = string | number | boolean | null | {
|
|
92
|
+
[key: string]: JsonValue;
|
|
93
|
+
} | JsonValue[];
|
|
94
|
+
type InputJsonValue = string | number | boolean | {
|
|
95
|
+
[key: string]: InputJsonValue;
|
|
96
|
+
} | InputJsonValue[];
|
|
97
|
+
declare function buildContextWhereClause(contextFilter: ContextFilterInput | null | undefined): PrismaJsonFilter | undefined;
|
|
98
|
+
declare function buildContextWhereConditions(contextFilter: ContextFilterInput | null | undefined): ContextWhereCondition[];
|
|
99
|
+
declare function toContextJson(contextInput: OperationContext | null | undefined): InputJsonValue | undefined;
|
|
100
|
+
declare function mergeContext(existingContext: JsonValue | null | undefined, newContext: OperationContext | null | undefined): InputJsonValue | undefined;
|
|
101
|
+
declare function parseContext(contextJson: JsonValue | null | undefined): OperationContext | null;
|
|
102
|
+
declare function contextMatches(context: OperationContext | null | undefined, filter: ContextFilterInput): boolean;
|
|
103
|
+
declare function createContextFromSDK(sdkContext: {
|
|
104
|
+
workspaceId?: string;
|
|
105
|
+
userId?: string;
|
|
106
|
+
projectId?: string;
|
|
107
|
+
appId?: string;
|
|
108
|
+
productId?: string;
|
|
109
|
+
organizationId?: string;
|
|
110
|
+
}): OperationContext;
|
|
111
|
+
declare namespace index_d_exports {
|
|
112
|
+
export { CallerTransaction, ConnectionState, ContextFilterInput, ContextWhereCondition, DatabaseClient, DatabaseClientConfig, DatabaseHealth, DatabaseReturnType, FieldExtractionOptions, FieldExtractionResult, InputJsonValue, JsonValue, ModelFieldsMap, OperationContext, PoolTuningEnv, PrismaClientBase, PrismaClientConfig, PrismaClientConstructorOptions, PrismaClientWrapper, PrismaEvent, PrismaJsonFilter, PrismaLogDefinition, PrismaLogEvent, PrismaLogLevel, PrismaQueryEvent, PrismaQueryInternalParams, PrismaTransactionOptions, RawPrismaForCallerTransaction, TransactionContextStatement, WorkspaceContext, WorkspaceExtensionConfig, addWorkspaceExtension, buildContextWhereClause, buildContextWhereConditions, buildTransactionContextStatement, checkDatabaseHealth, configurePrismaLogging, contextMatches, createConnectionPool, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, createPrismaAdapter, createPrismaClient, defaultWorkspaceExtensionConfig, ensureServiceApplicationName, extractFieldsFromModel, getAllModelNames, getCallerTransaction, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, getScopedWorkspaceContext, getWorkspaceContext, hasModel, initializeDatabase, initializeDatabaseWithConfig, injectCreateFields, injectWhereWorkspaceId, installAcquireRetry, isDatabaseInitialized, isTransientAcquireError, loadGeneratedFields, maybeSetRlsGuc, maybeTagConnection, mergeContext, parseContext, resetCallerTransactionStateForTests, resetDatabaseManager, resolvePoolTuningFromEnv, runOperationInCallerTransaction, runOperationWithRlsGuc, setWorkspaceContext, testConnection, toContextJson, withWorkspaceContext, withWorkspaceContextSync };
|
|
113
|
+
}
|
|
114
|
+
export { initializeDatabase as A, checkDatabaseHealth as C, getDatabaseManager as D, testConnection as E, DatabaseClientConfig as F, PoolTuningEnv as I, createDatabaseClient as L, isDatabaseInitialized as M, resetDatabaseManager as N, getDatabaseProductName as O, DatabaseClient as P, createDatabaseClientFromEnv as R, loadGeneratedFields as S, getDatabaseVersion as T, ModelFieldsMap as _, JsonValue as a, getModelFields as b, buildContextWhereClause as c, createContextFromSDK as d, mergeContext as f, FieldExtractionResult as g, FieldExtractionOptions as h, InputJsonValue as i, initializeDatabaseWithConfig as j, getDb as k, buildContextWhereConditions as l, toContextJson as m, ContextFilterInput as n, OperationContext as o, parseContext as p, ContextWhereCondition as r, PrismaJsonFilter as s, index_d_exports as t, contextMatches as u, extractFieldsFromModel as v, getDatabaseStats as w, hasModel as x, getAllModelNames as y, resolvePoolTuningFromEnv as z };
|
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import { r as Logger, u as logger } from "./index-BKwHQtHQ.js";
|
|
2
|
+
interface InstrumentationFeatureFlags {
|
|
3
|
+
tracing: boolean;
|
|
4
|
+
metrics: boolean;
|
|
5
|
+
logging: boolean;
|
|
6
|
+
graphql: boolean;
|
|
7
|
+
database: boolean;
|
|
8
|
+
http: boolean;
|
|
9
|
+
cache: boolean;
|
|
10
|
+
eventQueue: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface TracingConfig {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
serviceName: string;
|
|
15
|
+
serviceVersion?: string;
|
|
16
|
+
environment?: string;
|
|
17
|
+
exporterEndpoint?: string;
|
|
18
|
+
exporterType?: 'otlp' | 'console' | 'none';
|
|
19
|
+
samplingRate?: number;
|
|
20
|
+
propagationFormat?: 'w3c' | 'b3' | 'jaeger';
|
|
21
|
+
resourceAttributes?: Record<string, string>;
|
|
22
|
+
ignoredRoutes?: string[];
|
|
23
|
+
ignoredOperations?: string[];
|
|
24
|
+
}
|
|
25
|
+
interface MetricsConfig {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
serviceName: string;
|
|
28
|
+
exporterEndpoint?: string;
|
|
29
|
+
exporterType?: 'otlp' | 'prometheus' | 'console' | 'none';
|
|
30
|
+
prometheusEndpoint?: string;
|
|
31
|
+
prometheusPort?: number;
|
|
32
|
+
collectInterval?: number;
|
|
33
|
+
defaultMetrics?: boolean;
|
|
34
|
+
metricPrefix?: string;
|
|
35
|
+
}
|
|
36
|
+
interface LoggingConfig {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
includeTraceId?: boolean;
|
|
39
|
+
includeSpanId?: boolean;
|
|
40
|
+
includeTraceFlags?: boolean;
|
|
41
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
42
|
+
}
|
|
43
|
+
interface GraphQLInstrumentationConfig {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
includeDocument?: boolean;
|
|
46
|
+
includeVariables?: boolean;
|
|
47
|
+
includeResult?: boolean;
|
|
48
|
+
documentDepth?: number;
|
|
49
|
+
ignoredOperations?: string[];
|
|
50
|
+
includeResolvers?: boolean;
|
|
51
|
+
resolverSpanDepth?: number;
|
|
52
|
+
}
|
|
53
|
+
interface DatabaseInstrumentationConfig {
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
includeStatement?: boolean;
|
|
56
|
+
includeParameters?: boolean;
|
|
57
|
+
includeRowCount?: boolean;
|
|
58
|
+
slowQueryThreshold?: number;
|
|
59
|
+
ignoredOperations?: string[];
|
|
60
|
+
}
|
|
61
|
+
interface HTTPInstrumentationConfig {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
includeRequestHeaders?: boolean;
|
|
64
|
+
includeResponseHeaders?: boolean;
|
|
65
|
+
includeRequestBody?: boolean;
|
|
66
|
+
includeResponseBody?: boolean;
|
|
67
|
+
redactedHeaders?: string[];
|
|
68
|
+
ignoredRoutes?: string[];
|
|
69
|
+
maxBodySize?: number;
|
|
70
|
+
}
|
|
71
|
+
interface CacheInstrumentationConfig {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
includeKey?: boolean;
|
|
74
|
+
includeValueSize?: boolean;
|
|
75
|
+
includeTTL?: boolean;
|
|
76
|
+
}
|
|
77
|
+
interface EventQueueInstrumentationConfig {
|
|
78
|
+
enabled: boolean;
|
|
79
|
+
includePayload?: boolean;
|
|
80
|
+
includeHeaders?: boolean;
|
|
81
|
+
maxPayloadSize?: number;
|
|
82
|
+
}
|
|
83
|
+
interface InstrumentationConfig {
|
|
84
|
+
enabled: boolean;
|
|
85
|
+
features: InstrumentationFeatureFlags;
|
|
86
|
+
tracing: TracingConfig;
|
|
87
|
+
metrics: MetricsConfig;
|
|
88
|
+
logging: LoggingConfig;
|
|
89
|
+
graphql: GraphQLInstrumentationConfig;
|
|
90
|
+
database: DatabaseInstrumentationConfig;
|
|
91
|
+
http: HTTPInstrumentationConfig;
|
|
92
|
+
cache: CacheInstrumentationConfig;
|
|
93
|
+
eventQueue: EventQueueInstrumentationConfig;
|
|
94
|
+
}
|
|
95
|
+
interface SpanAttributes$1 {
|
|
96
|
+
'service.name'?: string;
|
|
97
|
+
'service.version'?: string;
|
|
98
|
+
'deployment.environment'?: string;
|
|
99
|
+
'operation.name'?: string;
|
|
100
|
+
'operation.type'?: string;
|
|
101
|
+
'user.id'?: string;
|
|
102
|
+
'tenant.id'?: string;
|
|
103
|
+
'workspace.id'?: string;
|
|
104
|
+
'request.id'?: string;
|
|
105
|
+
error?: boolean;
|
|
106
|
+
'error.message'?: string;
|
|
107
|
+
'error.type'?: string;
|
|
108
|
+
[key: string]: string | number | boolean | undefined;
|
|
109
|
+
}
|
|
110
|
+
type MetricType = 'counter' | 'histogram' | 'gauge' | 'upDownCounter';
|
|
111
|
+
interface MetricDefinition {
|
|
112
|
+
name: string;
|
|
113
|
+
description: string;
|
|
114
|
+
type: MetricType;
|
|
115
|
+
unit?: string;
|
|
116
|
+
labelKeys?: string[];
|
|
117
|
+
boundaries?: number[];
|
|
118
|
+
}
|
|
119
|
+
declare const STANDARD_METRICS: Record<string, MetricDefinition>;
|
|
120
|
+
interface SpanContext {
|
|
121
|
+
traceId: string;
|
|
122
|
+
spanId: string;
|
|
123
|
+
traceFlags: number;
|
|
124
|
+
isRemote?: boolean;
|
|
125
|
+
}
|
|
126
|
+
interface TraceContext {
|
|
127
|
+
traceId?: string;
|
|
128
|
+
spanId?: string;
|
|
129
|
+
traceFlags?: number;
|
|
130
|
+
parentSpanId?: string;
|
|
131
|
+
}
|
|
132
|
+
interface OperationContext {
|
|
133
|
+
operationName: string;
|
|
134
|
+
operationType: string;
|
|
135
|
+
actorId?: string;
|
|
136
|
+
tenantId?: string;
|
|
137
|
+
workspaceId?: string;
|
|
138
|
+
requestId?: string;
|
|
139
|
+
attributes?: Record<string, string | number | boolean>;
|
|
140
|
+
}
|
|
141
|
+
declare enum SpanStatus {
|
|
142
|
+
UNSET = 0,
|
|
143
|
+
OK = 1,
|
|
144
|
+
ERROR = 2
|
|
145
|
+
}
|
|
146
|
+
declare enum SpanKind {
|
|
147
|
+
INTERNAL = 0,
|
|
148
|
+
SERVER = 1,
|
|
149
|
+
CLIENT = 2,
|
|
150
|
+
PRODUCER = 3,
|
|
151
|
+
CONSUMER = 4
|
|
152
|
+
}
|
|
153
|
+
interface Span {
|
|
154
|
+
name: string;
|
|
155
|
+
traceId: string;
|
|
156
|
+
spanId: string;
|
|
157
|
+
parentSpanId?: string;
|
|
158
|
+
kind: SpanKind;
|
|
159
|
+
startTime: number;
|
|
160
|
+
endTime?: number;
|
|
161
|
+
status: SpanStatus;
|
|
162
|
+
attributes: SpanAttributes$1;
|
|
163
|
+
events: SpanEvent[];
|
|
164
|
+
isRecording: boolean;
|
|
165
|
+
setAttribute(key: string, value: string | number | boolean): Span;
|
|
166
|
+
setAttributes(attributes: SpanAttributes$1): Span;
|
|
167
|
+
setStatus(status: SpanStatus, message?: string): Span;
|
|
168
|
+
recordException(error: Error): Span;
|
|
169
|
+
addEvent(name: string, attributes?: SpanAttributes$1): Span;
|
|
170
|
+
end(): void;
|
|
171
|
+
getSpanContext(): SpanContext;
|
|
172
|
+
}
|
|
173
|
+
interface SpanEvent {
|
|
174
|
+
name: string;
|
|
175
|
+
timestamp: number;
|
|
176
|
+
attributes?: SpanAttributes$1;
|
|
177
|
+
}
|
|
178
|
+
declare class Tracer {
|
|
179
|
+
private serviceName;
|
|
180
|
+
private activeSpans;
|
|
181
|
+
private currentSpan;
|
|
182
|
+
private spanListeners;
|
|
183
|
+
constructor(serviceName: string);
|
|
184
|
+
isEnabled(): boolean;
|
|
185
|
+
startSpan(name: string, kind?: SpanKind, parentContext?: SpanContext): Span;
|
|
186
|
+
startSpanFromContext(context: OperationContext, kind?: SpanKind): Span;
|
|
187
|
+
getCurrentSpan(): Span | null;
|
|
188
|
+
getTraceContext(): TraceContext;
|
|
189
|
+
setCurrentSpan(span: Span): void;
|
|
190
|
+
withSpan<T>(name: string, fn: (span: Span) => Promise<T>, kind?: SpanKind, parentContext?: SpanContext): Promise<T>;
|
|
191
|
+
withSpanSync<T>(name: string, fn: (span: Span) => T, kind?: SpanKind, parentContext?: SpanContext): T;
|
|
192
|
+
addSpanListener(listener: (span: Span) => void): void;
|
|
193
|
+
removeSpanListener(listener: (span: Span) => void): void;
|
|
194
|
+
private onSpanEnd;
|
|
195
|
+
private logSpan;
|
|
196
|
+
getActiveSpanCount(): number;
|
|
197
|
+
clearActiveSpans(): void;
|
|
198
|
+
}
|
|
199
|
+
declare function initializeTracer(serviceName: string): Tracer;
|
|
200
|
+
declare function getTracer(): Tracer;
|
|
201
|
+
declare function isTracerInitialized(): boolean;
|
|
202
|
+
declare function startSpan(name: string, kind?: SpanKind, parentContext?: SpanContext): Span;
|
|
203
|
+
declare function withSpan<T>(name: string, fn: (span: Span) => Promise<T>, kind?: SpanKind): Promise<T>;
|
|
204
|
+
declare function getTraceContext(): TraceContext;
|
|
205
|
+
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): SpanContext | undefined;
|
|
206
|
+
declare function injectTraceContext(headers: Record<string, string>, spanContext?: SpanContext): void;
|
|
207
|
+
type MetricLabels = Record<string, string>;
|
|
208
|
+
interface Counter {
|
|
209
|
+
add(value: number, labels?: MetricLabels): void;
|
|
210
|
+
inc(labels?: MetricLabels): void;
|
|
211
|
+
getValue(labels?: MetricLabels): number;
|
|
212
|
+
}
|
|
213
|
+
interface Histogram {
|
|
214
|
+
record(value: number, labels?: MetricLabels): void;
|
|
215
|
+
getData(labels?: MetricLabels): HistogramData;
|
|
216
|
+
}
|
|
217
|
+
interface HistogramData {
|
|
218
|
+
count: number;
|
|
219
|
+
sum: number;
|
|
220
|
+
min: number;
|
|
221
|
+
max: number;
|
|
222
|
+
avg: number;
|
|
223
|
+
buckets: Map<number, number>;
|
|
224
|
+
percentiles: {
|
|
225
|
+
p50: number;
|
|
226
|
+
p75: number;
|
|
227
|
+
p90: number;
|
|
228
|
+
p95: number;
|
|
229
|
+
p99: number;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
interface Gauge {
|
|
233
|
+
set(value: number, labels?: MetricLabels): void;
|
|
234
|
+
add(value: number, labels?: MetricLabels): void;
|
|
235
|
+
sub(value: number, labels?: MetricLabels): void;
|
|
236
|
+
getValue(labels?: MetricLabels): number;
|
|
237
|
+
}
|
|
238
|
+
interface UpDownCounter {
|
|
239
|
+
add(value: number, labels?: MetricLabels): void;
|
|
240
|
+
getValue(labels?: MetricLabels): number;
|
|
241
|
+
}
|
|
242
|
+
declare class MetricsRegistry {
|
|
243
|
+
private counters;
|
|
244
|
+
private histograms;
|
|
245
|
+
private gauges;
|
|
246
|
+
private upDownCounters;
|
|
247
|
+
private serviceName;
|
|
248
|
+
private metricPrefix;
|
|
249
|
+
constructor(serviceName: string, metricPrefix?: string);
|
|
250
|
+
getServiceName(): string;
|
|
251
|
+
private isEnabled;
|
|
252
|
+
private getPrefixedName;
|
|
253
|
+
createCounter(name: string, description: string): Counter;
|
|
254
|
+
createHistogram(name: string, description: string, boundaries?: number[]): Histogram;
|
|
255
|
+
createGauge(name: string, description: string): Gauge;
|
|
256
|
+
createUpDownCounter(name: string, description: string): UpDownCounter;
|
|
257
|
+
createFromDefinition(definition: MetricDefinition): Counter | Histogram | Gauge | UpDownCounter;
|
|
258
|
+
getAllMetrics(): {
|
|
259
|
+
counters: Array<{
|
|
260
|
+
name: string;
|
|
261
|
+
description: string;
|
|
262
|
+
values: Map<string, number>;
|
|
263
|
+
}>;
|
|
264
|
+
histograms: Array<{
|
|
265
|
+
name: string;
|
|
266
|
+
description: string;
|
|
267
|
+
data: Map<string, HistogramData>;
|
|
268
|
+
}>;
|
|
269
|
+
gauges: Array<{
|
|
270
|
+
name: string;
|
|
271
|
+
description: string;
|
|
272
|
+
values: Map<string, number>;
|
|
273
|
+
}>;
|
|
274
|
+
upDownCounters: Array<{
|
|
275
|
+
name: string;
|
|
276
|
+
description: string;
|
|
277
|
+
values: Map<string, number>;
|
|
278
|
+
}>;
|
|
279
|
+
};
|
|
280
|
+
private exportCountersToPrometheus;
|
|
281
|
+
private exportHistogramsToPrometheus;
|
|
282
|
+
private exportGaugesToPrometheus;
|
|
283
|
+
private exportUpDownCountersToPrometheus;
|
|
284
|
+
toPrometheusFormat(): string;
|
|
285
|
+
reset(): void;
|
|
286
|
+
clear(): void;
|
|
287
|
+
}
|
|
288
|
+
declare function initializeMetricsRegistry(serviceName: string, metricPrefix?: string): MetricsRegistry;
|
|
289
|
+
declare function getMetricsRegistry(): MetricsRegistry;
|
|
290
|
+
declare function isMetricsRegistryInitialized(): boolean;
|
|
291
|
+
declare function resetMetricsRegistry(): void;
|
|
292
|
+
declare function createCounter(name: string, description: string): Counter;
|
|
293
|
+
declare function createHistogram(name: string, description: string, boundaries?: number[]): Histogram;
|
|
294
|
+
declare function createGauge(name: string, description: string): Gauge;
|
|
295
|
+
declare function createUpDownCounter(name: string, description: string): UpDownCounter;
|
|
296
|
+
interface PrometheusPluginOptions {
|
|
297
|
+
endpoint?: string | false;
|
|
298
|
+
skipIntrospection?: boolean;
|
|
299
|
+
httpDuration?: boolean;
|
|
300
|
+
requestDuration?: boolean;
|
|
301
|
+
requestCount?: boolean;
|
|
302
|
+
errorCount?: boolean;
|
|
303
|
+
resolverMetrics?: boolean;
|
|
304
|
+
instrumentResolvers?: string[];
|
|
305
|
+
deprecatedFields?: boolean;
|
|
306
|
+
parsePhase?: boolean;
|
|
307
|
+
validatePhase?: boolean;
|
|
308
|
+
contextPhase?: boolean;
|
|
309
|
+
executePhase?: boolean;
|
|
310
|
+
}
|
|
311
|
+
declare function createPrometheusPlugin(options?: PrometheusPluginOptions): unknown | null;
|
|
312
|
+
declare function isPrometheusAvailable(): boolean;
|
|
313
|
+
interface ApolloInlineTraceOptions {
|
|
314
|
+
includeFieldTraces?: boolean;
|
|
315
|
+
includeVariables?: boolean;
|
|
316
|
+
excludeOperations?: string[];
|
|
317
|
+
}
|
|
318
|
+
declare function createApolloInlineTracePlugin(_options?: ApolloInlineTraceOptions): unknown | null;
|
|
319
|
+
declare function isApolloInlineTraceAvailable(): boolean;
|
|
320
|
+
type GraphQLOperationType = 'query' | 'mutation' | 'subscription';
|
|
321
|
+
interface GraphQLOperationInfo {
|
|
322
|
+
operationType: GraphQLOperationType;
|
|
323
|
+
operationName: string | null;
|
|
324
|
+
document?: string;
|
|
325
|
+
variables?: Record<string, unknown>;
|
|
326
|
+
}
|
|
327
|
+
interface InstrumentationContextExtension {
|
|
328
|
+
_instrumentation?: {
|
|
329
|
+
span?: Span;
|
|
330
|
+
startTime?: number;
|
|
331
|
+
operationInfo?: GraphQLOperationInfo;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
declare function extractOperationInfo(args: {
|
|
335
|
+
document?: {
|
|
336
|
+
loc?: {
|
|
337
|
+
source?: {
|
|
338
|
+
body?: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
definitions?: unknown[];
|
|
342
|
+
};
|
|
343
|
+
operationName?: string | null;
|
|
344
|
+
variableValues?: Record<string, unknown>;
|
|
345
|
+
}): GraphQLOperationInfo;
|
|
346
|
+
declare function createGraphQLInstrumentationPlugin(): {
|
|
347
|
+
onExecute: (args: {
|
|
348
|
+
args: {
|
|
349
|
+
document?: unknown;
|
|
350
|
+
operationName?: string | null;
|
|
351
|
+
variableValues?: Record<string, unknown>;
|
|
352
|
+
contextValue?: unknown;
|
|
353
|
+
};
|
|
354
|
+
}) => {
|
|
355
|
+
onExecuteDone: (args: {
|
|
356
|
+
result: unknown;
|
|
357
|
+
setResult?: (result: unknown) => void;
|
|
358
|
+
}) => void;
|
|
359
|
+
} | undefined;
|
|
360
|
+
onSubscribe?: (args: {
|
|
361
|
+
args: unknown;
|
|
362
|
+
}) => void;
|
|
363
|
+
};
|
|
364
|
+
declare function instrumentResolver<TArgs extends unknown[], TResult>(name: string, resolver: (...args: TArgs) => Promise<TResult>, options?: {
|
|
365
|
+
includeArgs?: boolean;
|
|
366
|
+
includeResult?: boolean;
|
|
367
|
+
attributes?: Record<string, string | number | boolean>;
|
|
368
|
+
}): (...args: TArgs) => Promise<TResult>;
|
|
369
|
+
declare function instrumentResolverMap<T extends Record<string, Record<string, (...args: unknown[]) => Promise<unknown>>>>(resolverMap: T, options?: {
|
|
370
|
+
includeTypes?: string[];
|
|
371
|
+
excludeTypes?: string[];
|
|
372
|
+
excludeFields?: string[];
|
|
373
|
+
}): T;
|
|
374
|
+
declare function getGraphQLOperationFromContext(context: unknown): GraphQLOperationInfo | undefined;
|
|
375
|
+
declare function getGraphQLSpanFromContext(context: unknown): Span | undefined;
|
|
376
|
+
declare const ENV_VARS: {
|
|
377
|
+
readonly INSTRUMENTATION_ENABLED: "INSTRUMENTATION_ENABLED";
|
|
378
|
+
readonly INSTRUMENTATION_TRACING: "INSTRUMENTATION_TRACING";
|
|
379
|
+
readonly INSTRUMENTATION_METRICS: "INSTRUMENTATION_METRICS";
|
|
380
|
+
readonly INSTRUMENTATION_LOGGING: "INSTRUMENTATION_LOGGING";
|
|
381
|
+
readonly INSTRUMENTATION_GRAPHQL: "INSTRUMENTATION_GRAPHQL";
|
|
382
|
+
readonly INSTRUMENTATION_DATABASE: "INSTRUMENTATION_DATABASE";
|
|
383
|
+
readonly INSTRUMENTATION_HTTP: "INSTRUMENTATION_HTTP";
|
|
384
|
+
readonly INSTRUMENTATION_CACHE: "INSTRUMENTATION_CACHE";
|
|
385
|
+
readonly INSTRUMENTATION_EVENT_QUEUE: "INSTRUMENTATION_EVENT_QUEUE";
|
|
386
|
+
readonly OTEL_SERVICE_NAME: "OTEL_SERVICE_NAME";
|
|
387
|
+
readonly OTEL_SERVICE_VERSION: "OTEL_SERVICE_VERSION";
|
|
388
|
+
readonly OTEL_ENVIRONMENT: "OTEL_ENVIRONMENT";
|
|
389
|
+
readonly OTEL_EXPORTER_OTLP_ENDPOINT: "OTEL_EXPORTER_OTLP_ENDPOINT";
|
|
390
|
+
readonly OTEL_EXPORTER_TYPE: "OTEL_EXPORTER_TYPE";
|
|
391
|
+
readonly OTEL_SAMPLING_RATE: "OTEL_SAMPLING_RATE";
|
|
392
|
+
readonly OTEL_PROPAGATION_FORMAT: "OTEL_PROPAGATION_FORMAT";
|
|
393
|
+
readonly METRICS_EXPORTER_TYPE: "METRICS_EXPORTER_TYPE";
|
|
394
|
+
readonly METRICS_PROMETHEUS_ENDPOINT: "METRICS_PROMETHEUS_ENDPOINT";
|
|
395
|
+
readonly METRICS_PROMETHEUS_PORT: "METRICS_PROMETHEUS_PORT";
|
|
396
|
+
readonly METRICS_COLLECT_INTERVAL: "METRICS_COLLECT_INTERVAL";
|
|
397
|
+
readonly METRICS_DEFAULT_ENABLED: "METRICS_DEFAULT_ENABLED";
|
|
398
|
+
readonly METRICS_PREFIX: "METRICS_PREFIX";
|
|
399
|
+
readonly DB_INSTRUMENTATION_INCLUDE_STATEMENT: "DB_INSTRUMENTATION_INCLUDE_STATEMENT";
|
|
400
|
+
readonly DB_INSTRUMENTATION_SLOW_QUERY_THRESHOLD: "DB_INSTRUMENTATION_SLOW_QUERY_THRESHOLD";
|
|
401
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_DOCUMENT: "GRAPHQL_INSTRUMENTATION_INCLUDE_DOCUMENT";
|
|
402
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_VARIABLES: "GRAPHQL_INSTRUMENTATION_INCLUDE_VARIABLES";
|
|
403
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_RESOLVERS: "GRAPHQL_INSTRUMENTATION_INCLUDE_RESOLVERS";
|
|
404
|
+
};
|
|
405
|
+
declare const DEFAULT_FEATURE_FLAGS: InstrumentationFeatureFlags;
|
|
406
|
+
declare const DEFAULT_TRACING_CONFIG: TracingConfig;
|
|
407
|
+
declare const DEFAULT_METRICS_CONFIG: MetricsConfig;
|
|
408
|
+
declare const DEFAULT_LOGGING_CONFIG: LoggingConfig;
|
|
409
|
+
declare const DEFAULT_GRAPHQL_CONFIG: GraphQLInstrumentationConfig;
|
|
410
|
+
declare const DEFAULT_DATABASE_CONFIG: DatabaseInstrumentationConfig;
|
|
411
|
+
declare const DEFAULT_HTTP_CONFIG: HTTPInstrumentationConfig;
|
|
412
|
+
declare const DEFAULT_CACHE_CONFIG: CacheInstrumentationConfig;
|
|
413
|
+
declare const DEFAULT_EVENT_QUEUE_CONFIG: EventQueueInstrumentationConfig;
|
|
414
|
+
declare function buildFeatureFlags(overrides?: Partial<InstrumentationFeatureFlags>): InstrumentationFeatureFlags;
|
|
415
|
+
declare function buildTracingConfig(serviceName: string, overrides?: Partial<TracingConfig>): TracingConfig;
|
|
416
|
+
declare function buildMetricsConfig(serviceName: string, overrides?: Partial<MetricsConfig>): MetricsConfig;
|
|
417
|
+
declare function buildDatabaseConfig(overrides?: Partial<DatabaseInstrumentationConfig>): DatabaseInstrumentationConfig;
|
|
418
|
+
declare function buildGraphQLConfig(overrides?: Partial<GraphQLInstrumentationConfig>): GraphQLInstrumentationConfig;
|
|
419
|
+
declare function buildInstrumentationConfig(serviceName: string, overrides?: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
420
|
+
declare function initializeInstrumentationConfig(serviceName: string, overrides?: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
421
|
+
declare function getInstrumentationConfig(): InstrumentationConfig;
|
|
422
|
+
declare function isInstrumentationConfigInitialized(): boolean;
|
|
423
|
+
declare function isFeatureEnabled(feature: keyof InstrumentationFeatureFlags): boolean;
|
|
424
|
+
declare function updateInstrumentationConfig(updates: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
425
|
+
declare function resetInstrumentationConfig(): void;
|
|
426
|
+
type SpanAttributes = Record<string, string | number | boolean>;
|
|
427
|
+
interface TraceOptions {
|
|
428
|
+
name?: string;
|
|
429
|
+
kind?: SpanKind;
|
|
430
|
+
attributes?: SpanAttributes;
|
|
431
|
+
includeArgs?: boolean;
|
|
432
|
+
includeResult?: boolean;
|
|
433
|
+
extractAttributes?: (args: unknown[]) => SpanAttributes;
|
|
434
|
+
skip?: boolean | ((args: unknown[]) => boolean);
|
|
435
|
+
}
|
|
436
|
+
interface MetricOptions {
|
|
437
|
+
name?: string;
|
|
438
|
+
labels?: MetricLabels | ((args: unknown[], result?: unknown) => MetricLabels);
|
|
439
|
+
recordCount?: boolean;
|
|
440
|
+
recordDuration?: boolean;
|
|
441
|
+
boundaries?: number[];
|
|
442
|
+
}
|
|
443
|
+
interface LogOptions {
|
|
444
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
445
|
+
includeArgs?: boolean;
|
|
446
|
+
includeResult?: boolean;
|
|
447
|
+
logEntry?: boolean;
|
|
448
|
+
logExit?: boolean;
|
|
449
|
+
logError?: boolean;
|
|
450
|
+
message?: string;
|
|
451
|
+
}
|
|
452
|
+
interface InstrumentOptions {
|
|
453
|
+
operationName?: string;
|
|
454
|
+
operationType?: string;
|
|
455
|
+
trace?: TraceOptions | boolean;
|
|
456
|
+
metrics?: MetricOptions | boolean;
|
|
457
|
+
log?: LogOptions | boolean;
|
|
458
|
+
skip?: boolean | ((args: unknown[]) => boolean);
|
|
459
|
+
}
|
|
460
|
+
declare function Trace(options?: TraceOptions): MethodDecorator;
|
|
461
|
+
declare function Metric(options?: MetricOptions): MethodDecorator;
|
|
462
|
+
declare function Log(options?: LogOptions): MethodDecorator;
|
|
463
|
+
declare function Instrument(options?: InstrumentOptions): MethodDecorator;
|
|
464
|
+
declare function traced<T extends (...args: unknown[]) => Promise<unknown>>(name: string, fn: T, options?: TraceOptions): T;
|
|
465
|
+
declare function instrumented<T extends (...args: unknown[]) => Promise<unknown>>(name: string, fn: T, options?: InstrumentOptions): T;
|
|
466
|
+
declare namespace index_d_exports {
|
|
467
|
+
export { ApolloInlineTraceOptions, CacheInstrumentationConfig, Counter, DEFAULT_CACHE_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_EVENT_QUEUE_CONFIG, DEFAULT_FEATURE_FLAGS, DEFAULT_GRAPHQL_CONFIG, DEFAULT_HTTP_CONFIG, DEFAULT_LOGGING_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_TRACING_CONFIG, DatabaseInstrumentationConfig, ENV_VARS, EventQueueInstrumentationConfig, Gauge, GraphQLInstrumentationConfig, GraphQLOperationInfo, GraphQLOperationType, HTTPInstrumentationConfig, Histogram, InitializeInstrumentationOptions, Instrument, InstrumentationConfig, InstrumentationContextExtension, InstrumentationFeatureFlags, InstrumentationSetupResult, Log, LoggingConfig, Metric, MetricDefinition, MetricLabels, MetricsConfig, MetricsRegistry, OperationContext, PrometheusPluginOptions, STANDARD_METRICS, SetupInstrumentationOptions, Span, SpanAttributes$1 as SpanAttributes, SpanContext, SpanEvent, SpanKind, SpanStatus, Trace, TraceContext, Tracer, TracingConfig, UpDownCounter, buildDatabaseConfig, buildFeatureFlags, buildGraphQLConfig, buildInstrumentationConfig, buildMetricsConfig, buildTracingConfig, createApolloInlineTracePlugin, createCounter, createGauge, createGraphQLInstrumentationPlugin, createHistogram, createPrometheusPlugin, createUpDownCounter, extractOperationInfo, extractTraceContext, getGraphQLOperationFromContext, getGraphQLSpanFromContext, getInstrumentationConfig, getLogger, getMetricsRegistry, getTraceContext, getTracer, initializeInstrumentation, initializeInstrumentationConfig, initializeMetricsRegistry, initializeTracer, injectTraceContext, instrumentResolver, instrumentResolverMap, instrumented, isApolloInlineTraceAvailable, isFeatureEnabled, isInstrumentationConfigInitialized, isInstrumentationInitialized, isMetricsRegistryInitialized, isPrometheusAvailable, isTracerInitialized, logger, resetInstrumentation, resetInstrumentationConfig, resetMetricsRegistry, setupInstrumentation, startSpan, traced, updateInstrumentationConfig, withSpan };
|
|
468
|
+
}
|
|
469
|
+
declare function getLogger(): Logger;
|
|
470
|
+
interface InitializeInstrumentationOptions {
|
|
471
|
+
features?: Partial<InstrumentationFeatureFlags>;
|
|
472
|
+
tracing?: Partial<TracingConfig>;
|
|
473
|
+
metrics?: Partial<MetricsConfig>;
|
|
474
|
+
logging?: Partial<LoggingConfig>;
|
|
475
|
+
graphql?: Partial<GraphQLInstrumentationConfig>;
|
|
476
|
+
database?: Partial<DatabaseInstrumentationConfig>;
|
|
477
|
+
http?: Partial<HTTPInstrumentationConfig>;
|
|
478
|
+
cache?: Partial<CacheInstrumentationConfig>;
|
|
479
|
+
eventQueue?: Partial<EventQueueInstrumentationConfig>;
|
|
480
|
+
}
|
|
481
|
+
declare function initializeInstrumentation(serviceName: string, options?: InitializeInstrumentationOptions): {
|
|
482
|
+
tracer: Tracer;
|
|
483
|
+
metrics: MetricsRegistry;
|
|
484
|
+
config: InstrumentationConfig;
|
|
485
|
+
};
|
|
486
|
+
declare function isInstrumentationInitialized(): boolean;
|
|
487
|
+
declare function resetInstrumentation(): void;
|
|
488
|
+
interface SetupInstrumentationOptions extends InitializeInstrumentationOptions {
|
|
489
|
+
useApolloInlineTrace?: boolean;
|
|
490
|
+
usePrometheus?: boolean;
|
|
491
|
+
prometheus?: PrometheusPluginOptions;
|
|
492
|
+
}
|
|
493
|
+
interface InstrumentationSetupResult {
|
|
494
|
+
tracer: Tracer;
|
|
495
|
+
metrics: MetricsRegistry;
|
|
496
|
+
config: InstrumentationConfig;
|
|
497
|
+
plugins: unknown[];
|
|
498
|
+
}
|
|
499
|
+
declare function setupInstrumentation(serviceName: string, options?: SetupInstrumentationOptions): InstrumentationSetupResult;
|
|
500
|
+
export { Counter as $, buildMetricsConfig as A, HTTPInstrumentationConfig as At, GraphQLOperationType as B, TraceContext as Bt, DEFAULT_METRICS_CONFIG as C, isTracerInitialized as Ct, buildFeatureFlags as D, DatabaseInstrumentationConfig as Dt, buildDatabaseConfig as E, CacheInstrumentationConfig as Et, isInstrumentationConfigInitialized as F, MetricsConfig as Ft, createPrometheusPlugin as G, PrometheusPluginOptions as H, resetInstrumentationConfig as I, OperationContext as It, getGraphQLSpanFromContext as J, extractOperationInfo as K, updateInstrumentationConfig as L, STANDARD_METRICS as Lt, getInstrumentationConfig as M, InstrumentationFeatureFlags as Mt, initializeInstrumentationConfig as N, LoggingConfig as Nt, buildGraphQLConfig as O, EventQueueInstrumentationConfig as Ot, isFeatureEnabled as P, MetricDefinition as Pt, isPrometheusAvailable as Q, ApolloInlineTraceOptions as R, SpanAttributes$1 as Rt, DEFAULT_LOGGING_CONFIG as S, injectTraceContext as St, ENV_VARS as T, withSpan as Tt, createApolloInlineTracePlugin as U, InstrumentationContextExtension as V, TracingConfig as Vt, createGraphQLInstrumentationPlugin as W, instrumentResolverMap as X, instrumentResolver as Y, isApolloInlineTraceAvailable as Z, DEFAULT_DATABASE_CONFIG as _, Tracer as _t, index_d_exports as a, createCounter as at, DEFAULT_GRAPHQL_CONFIG as b, getTracer as bt, resetInstrumentation as c, createUpDownCounter as ct, Log as d, isMetricsRegistryInitialized as dt, Gauge as et, Metric as f, resetMetricsRegistry as ft, DEFAULT_CACHE_CONFIG as g, SpanStatus as gt, traced as h, SpanKind as ht, getLogger as i, UpDownCounter as it, buildTracingConfig as j, InstrumentationConfig as jt, buildInstrumentationConfig as k, GraphQLInstrumentationConfig as kt, setupInstrumentation as l, getMetricsRegistry as lt, instrumented as m, SpanEvent as mt, InstrumentationSetupResult as n, MetricLabels as nt, initializeInstrumentation as o, createGauge as ot, Trace as p, Span as pt, getGraphQLOperationFromContext as q, SetupInstrumentationOptions as r, MetricsRegistry as rt, isInstrumentationInitialized as s, createHistogram as st, InitializeInstrumentationOptions as t, Histogram as tt, Instrument as u, initializeMetricsRegistry as ut, DEFAULT_EVENT_QUEUE_CONFIG as v, extractTraceContext as vt, DEFAULT_TRACING_CONFIG as w, startSpan as wt, DEFAULT_HTTP_CONFIG as x, initializeTracer as xt, DEFAULT_FEATURE_FLAGS as y, getTraceContext as yt, GraphQLOperationInfo as z, SpanContext as zt };
|