@glasstrace/sdk 1.9.1 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/async-context/index.cjs +44 -0
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{chunk-JHUNLPSS.js → chunk-6RKS3DNA.js} +45 -1
- package/dist/{chunk-JHUNLPSS.js.map → chunk-6RKS3DNA.js.map} +1 -1
- package/dist/{chunk-HD6JIFKN.js → chunk-BSVWJSVX.js} +2 -2
- package/dist/{chunk-QOHKZOKB.js → chunk-D54FMQHF.js} +2 -2
- package/dist/chunk-I2DVVSKW.js +419 -0
- package/dist/chunk-I2DVVSKW.js.map +1 -0
- package/dist/{chunk-H6WJ63X2.js → chunk-M5GO2SSO.js} +2 -2
- package/dist/{chunk-QEXRCXSY.js → chunk-OXM2BZMF.js} +2 -2
- package/dist/{chunk-M6EWJCAT.js → chunk-QVTONMVZ.js} +2 -2
- package/dist/{chunk-DKV53A2C.js → chunk-RL43PU2X.js} +2 -2
- package/dist/{chunk-KI7YJ7XD.js → chunk-TJ46YOGJ.js} +42 -22
- package/dist/chunk-TJ46YOGJ.js.map +1 -0
- package/dist/{chunk-GWIEUBFR.js → chunk-UMGZJYC4.js} +3 -3
- package/dist/{chunk-2F2MGFLO.js → chunk-WQF7ZQOM.js} +39 -405
- package/dist/chunk-WQF7ZQOM.js.map +1 -0
- package/dist/{chunk-QXITSNYM.js → chunk-XG6WR2KS.js} +3 -3
- package/dist/cli/init.cjs +51 -25
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +8 -8
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs +42 -22
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +4 -4
- package/dist/cli/mcp-add.js.map +1 -1
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +39 -21
- package/dist/cli/upgrade-instructions.cjs.map +1 -1
- package/dist/cli/upgrade-instructions.js +4 -4
- package/dist/cli/upgrade-instructions.js.map +1 -1
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/edge-entry.cjs +44 -0
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.js +4 -4
- package/dist/index.cjs +58 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs +44 -0
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +58 -5
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.js +12 -10
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-MMJ2WCL4.js → source-map-uploader-CLYCE2TZ.js} +3 -3
- package/dist/trpc/index.cjs +15164 -503
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.d.cts +62 -1
- package/dist/trpc/index.d.ts +62 -1
- package/dist/trpc/index.js +200 -1
- package/dist/trpc/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2F2MGFLO.js.map +0 -1
- package/dist/chunk-KI7YJ7XD.js.map +0 -1
- /package/dist/{chunk-HD6JIFKN.js.map → chunk-BSVWJSVX.js.map} +0 -0
- /package/dist/{chunk-QOHKZOKB.js.map → chunk-D54FMQHF.js.map} +0 -0
- /package/dist/{chunk-H6WJ63X2.js.map → chunk-M5GO2SSO.js.map} +0 -0
- /package/dist/{chunk-QEXRCXSY.js.map → chunk-OXM2BZMF.js.map} +0 -0
- /package/dist/{chunk-M6EWJCAT.js.map → chunk-QVTONMVZ.js.map} +0 -0
- /package/dist/{chunk-DKV53A2C.js.map → chunk-RL43PU2X.js.map} +0 -0
- /package/dist/{chunk-GWIEUBFR.js.map → chunk-UMGZJYC4.js.map} +0 -0
- /package/dist/{chunk-QXITSNYM.js.map → chunk-XG6WR2KS.js.map} +0 -0
- /package/dist/{source-map-uploader-MMJ2WCL4.js.map → source-map-uploader-CLYCE2TZ.js.map} +0 -0
|
@@ -14584,6 +14584,21 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
14584
14584
|
HTTP_METHOD: "glasstrace.http.method",
|
|
14585
14585
|
HTTP_STATUS_CODE: "glasstrace.http.status_code",
|
|
14586
14586
|
HTTP_DURATION_MS: "glasstrace.http.duration_ms",
|
|
14587
|
+
/**
|
|
14588
|
+
* Boolean audit attribute set to `true` only when the SDK's
|
|
14589
|
+
* boundary-masked-error heuristic at `enriching-exporter.ts`
|
|
14590
|
+
* fires (SDK-051 / DISC-1125 — same-span scope; descendant-traversal
|
|
14591
|
+
* scope is tracked in a follow-up DISC).
|
|
14592
|
+
*
|
|
14593
|
+
* Strict additivity: backend ingestion ignores unknown attributes
|
|
14594
|
+
* today; this attribute is for audit/observability. Downstream
|
|
14595
|
+
* tooling MAY surface heuristic activation rates by querying for
|
|
14596
|
+
* spans with this attribute set; the backend's status-handling
|
|
14597
|
+
* pipeline does NOT depend on it.
|
|
14598
|
+
*
|
|
14599
|
+
* Absent on spans where the heuristic did not fire.
|
|
14600
|
+
*/
|
|
14601
|
+
HTTP_BOUNDARY_MASKED: "glasstrace.http.boundary_masked",
|
|
14587
14602
|
ERROR_MESSAGE: "glasstrace.error.message",
|
|
14588
14603
|
ERROR_CODE: "glasstrace.error.code",
|
|
14589
14604
|
ERROR_CATEGORY: "glasstrace.error.category",
|
|
@@ -14623,6 +14638,35 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
14623
14638
|
SOURCE_LINE: "glasstrace.source.line",
|
|
14624
14639
|
SOURCE_MAPPED: "glasstrace.source.mapped",
|
|
14625
14640
|
TRPC_PROCEDURE: "glasstrace.trpc.procedure",
|
|
14641
|
+
/**
|
|
14642
|
+
* Zero-based positional index of the current member within a tRPC
|
|
14643
|
+
* HTTP-batch dispatch (SDK-052 / DISC-1534 SDK-side slice). Set on
|
|
14644
|
+
* member spans by `tracedMiddleware` when the SDK's
|
|
14645
|
+
* `wrapBatchedHttpHandler` envelope is in scope. Numeric.
|
|
14646
|
+
*
|
|
14647
|
+
* Load-bearing for batches that include the same procedure name
|
|
14648
|
+
* more than once — name-only matching cannot disambiguate, so the
|
|
14649
|
+
* positional index is the canonical disambiguator. Absent on
|
|
14650
|
+
* non-batched spans and on apps not using `wrapBatchedHttpHandler`.
|
|
14651
|
+
*/
|
|
14652
|
+
TRPC_BATCH_MEMBER_INDEX: "glasstrace.trpc.batch.member_index",
|
|
14653
|
+
/**
|
|
14654
|
+
* Ordered list of all procedure names in the current tRPC HTTP
|
|
14655
|
+
* batch (SDK-052 / DISC-1534 SDK-side slice). Stored as an OTel
|
|
14656
|
+
* typed string array (`string[]`), NOT a JSON-encoded string —
|
|
14657
|
+
* the typed-array form preserves first-class queryability in the
|
|
14658
|
+
* OTel ingest pipeline.
|
|
14659
|
+
*
|
|
14660
|
+
* Set on each member span that `tracedMiddleware` produces when a
|
|
14661
|
+
* `wrapBatchedHttpHandler` envelope is in scope. Absent on
|
|
14662
|
+
* non-batched spans, on the root HTTP server span (today's
|
|
14663
|
+
* release ships strict-additive scope only — per-root-span
|
|
14664
|
+
* attribution is deferred to a follow-up wave because changing
|
|
14665
|
+
* the root span's existing `glasstrace.trpc.procedure` shape from
|
|
14666
|
+
* comma-joined to first-member representative is non-additive),
|
|
14667
|
+
* and on apps not using `wrapBatchedHttpHandler`.
|
|
14668
|
+
*/
|
|
14669
|
+
TRPC_BATCH_MEMBER_PROCEDURES: "glasstrace.trpc.batch.member_procedures",
|
|
14626
14670
|
ERROR_RESPONSE_BODY: "glasstrace.error.response_body",
|
|
14627
14671
|
NEXT_ACTION_DETECTED: "glasstrace.next.action.detected",
|
|
14628
14672
|
// Client-side attributes
|