@glasstrace/sdk 1.9.0 → 1.10.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/async-context/index.cjs +53 -4
- 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-QHV7NFON.js → chunk-D54FMQHF.js} +49 -40
- package/dist/chunk-D54FMQHF.js.map +1 -0
- 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-XEPC4NFL.js → chunk-OXA4IHQX.js} +39 -405
- package/dist/chunk-OXA4IHQX.js.map +1 -0
- package/dist/{chunk-RQ5BIWDT.js → chunk-OXM2BZMF.js} +11 -6
- package/dist/{chunk-RQ5BIWDT.js.map → chunk-OXM2BZMF.js.map} +1 -1
- package/dist/{chunk-M6EWJCAT.js → chunk-QVTONMVZ.js} +2 -2
- package/dist/{chunk-DKV53A2C.js → chunk-RL43PU2X.js} +2 -2
- package/dist/{chunk-GWIEUBFR.js → chunk-UMGZJYC4.js} +3 -3
- package/dist/{chunk-QXITSNYM.js → chunk-XG6WR2KS.js} +3 -3
- package/dist/cli/init.cjs +4 -4
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs +1 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +3 -3
- package/dist/cli/mcp-add.js.map +1 -1
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.cjs.map +1 -1
- package/dist/cli/upgrade-instructions.js +3 -3
- 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 +100 -42
- 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 +91 -38
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.d.cts +8 -0
- package/dist/middleware/index.d.ts +8 -0
- 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-QHV7NFON.js.map +0 -1
- package/dist/chunk-XEPC4NFL.js.map +0 -1
- /package/dist/{chunk-HD6JIFKN.js.map → chunk-BSVWJSVX.js.map} +0 -0
- /package/dist/{chunk-H6WJ63X2.js.map → chunk-M5GO2SSO.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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_resetForTesting,
|
|
3
3
|
withAsyncCausality
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OXM2BZMF.js";
|
|
5
5
|
import "../chunk-CL3OVHPO.js";
|
|
6
6
|
import "../chunk-DQ25VOKK.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6RKS3DNA.js";
|
|
8
8
|
import "../chunk-NSBPE2FW.js";
|
|
9
9
|
export {
|
|
10
10
|
_resetForTesting,
|
|
@@ -13846,6 +13846,21 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
13846
13846
|
HTTP_METHOD: "glasstrace.http.method",
|
|
13847
13847
|
HTTP_STATUS_CODE: "glasstrace.http.status_code",
|
|
13848
13848
|
HTTP_DURATION_MS: "glasstrace.http.duration_ms",
|
|
13849
|
+
/**
|
|
13850
|
+
* Boolean audit attribute set to `true` only when the SDK's
|
|
13851
|
+
* boundary-masked-error heuristic at `enriching-exporter.ts`
|
|
13852
|
+
* fires (SDK-051 / DISC-1125 — same-span scope; descendant-traversal
|
|
13853
|
+
* scope is tracked in a follow-up DISC).
|
|
13854
|
+
*
|
|
13855
|
+
* Strict additivity: backend ingestion ignores unknown attributes
|
|
13856
|
+
* today; this attribute is for audit/observability. Downstream
|
|
13857
|
+
* tooling MAY surface heuristic activation rates by querying for
|
|
13858
|
+
* spans with this attribute set; the backend's status-handling
|
|
13859
|
+
* pipeline does NOT depend on it.
|
|
13860
|
+
*
|
|
13861
|
+
* Absent on spans where the heuristic did not fire.
|
|
13862
|
+
*/
|
|
13863
|
+
HTTP_BOUNDARY_MASKED: "glasstrace.http.boundary_masked",
|
|
13849
13864
|
ERROR_MESSAGE: "glasstrace.error.message",
|
|
13850
13865
|
ERROR_CODE: "glasstrace.error.code",
|
|
13851
13866
|
ERROR_CATEGORY: "glasstrace.error.category",
|
|
@@ -13885,6 +13900,35 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
13885
13900
|
SOURCE_LINE: "glasstrace.source.line",
|
|
13886
13901
|
SOURCE_MAPPED: "glasstrace.source.mapped",
|
|
13887
13902
|
TRPC_PROCEDURE: "glasstrace.trpc.procedure",
|
|
13903
|
+
/**
|
|
13904
|
+
* Zero-based positional index of the current member within a tRPC
|
|
13905
|
+
* HTTP-batch dispatch (SDK-052 / DISC-1534 SDK-side slice). Set on
|
|
13906
|
+
* member spans by `tracedMiddleware` when the SDK's
|
|
13907
|
+
* `wrapBatchedHttpHandler` envelope is in scope. Numeric.
|
|
13908
|
+
*
|
|
13909
|
+
* Load-bearing for batches that include the same procedure name
|
|
13910
|
+
* more than once — name-only matching cannot disambiguate, so the
|
|
13911
|
+
* positional index is the canonical disambiguator. Absent on
|
|
13912
|
+
* non-batched spans and on apps not using `wrapBatchedHttpHandler`.
|
|
13913
|
+
*/
|
|
13914
|
+
TRPC_BATCH_MEMBER_INDEX: "glasstrace.trpc.batch.member_index",
|
|
13915
|
+
/**
|
|
13916
|
+
* Ordered list of all procedure names in the current tRPC HTTP
|
|
13917
|
+
* batch (SDK-052 / DISC-1534 SDK-side slice). Stored as an OTel
|
|
13918
|
+
* typed string array (`string[]`), NOT a JSON-encoded string —
|
|
13919
|
+
* the typed-array form preserves first-class queryability in the
|
|
13920
|
+
* OTel ingest pipeline.
|
|
13921
|
+
*
|
|
13922
|
+
* Set on each member span that `tracedMiddleware` produces when a
|
|
13923
|
+
* `wrapBatchedHttpHandler` envelope is in scope. Absent on
|
|
13924
|
+
* non-batched spans, on the root HTTP server span (today's
|
|
13925
|
+
* release ships strict-additive scope only — per-root-span
|
|
13926
|
+
* attribution is deferred to a follow-up wave because changing
|
|
13927
|
+
* the root span's existing `glasstrace.trpc.procedure` shape from
|
|
13928
|
+
* comma-joined to first-member representative is non-additive),
|
|
13929
|
+
* and on apps not using `wrapBatchedHttpHandler`.
|
|
13930
|
+
*/
|
|
13931
|
+
TRPC_BATCH_MEMBER_PROCEDURES: "glasstrace.trpc.batch.member_procedures",
|
|
13888
13932
|
ERROR_RESPONSE_BODY: "glasstrace.error.response_body",
|
|
13889
13933
|
NEXT_ACTION_DETECTED: "glasstrace.next.action.detected",
|
|
13890
13934
|
// Client-side attributes
|
|
@@ -14292,4 +14336,4 @@ export {
|
|
|
14292
14336
|
SIDE_EFFECT_OPERATION_STATUSES,
|
|
14293
14337
|
SIDE_EFFECT_OPERATION_PHASES
|
|
14294
14338
|
};
|
|
14295
|
-
//# sourceMappingURL=chunk-
|
|
14339
|
+
//# sourceMappingURL=chunk-6RKS3DNA.js.map
|