@glasstrace/sdk 1.11.0 → 1.12.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/README.md +20 -3
- package/dist/async-context/index.cjs +1189 -440
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{capture-error-BeuEXXJO.d.cts → capture-error-CRQSqKgd.d.cts} +2 -2
- package/dist/{capture-error-D02pzB7q.d.ts → capture-error-CqCbjoMq.d.ts} +2 -2
- package/dist/{chunk-OXM2BZMF.js → chunk-4YRYR32D.js} +2 -2
- package/dist/{chunk-XG6WR2KS.js → chunk-6NKMAKMI.js} +3 -3
- package/dist/{chunk-6RKS3DNA.js → chunk-BN5DVIUO.js} +1176 -424
- package/dist/chunk-BN5DVIUO.js.map +1 -0
- package/dist/{chunk-DQFGNX3H.js → chunk-CZQN6G4I.js} +21 -20
- package/dist/chunk-CZQN6G4I.js.map +1 -0
- package/dist/{chunk-D54FMQHF.js → chunk-FFNGE5RR.js} +2 -2
- package/dist/{chunk-RL43PU2X.js → chunk-J3ZCVE67.js} +2 -2
- package/dist/{chunk-BSVWJSVX.js → chunk-KBHGPQZ2.js} +2 -2
- package/dist/{chunk-M5GO2SSO.js → chunk-M3ZTG4P5.js} +2 -2
- package/dist/{chunk-FQ4SEG6Y.js → chunk-V75ZB4G4.js} +3 -3
- package/dist/{chunk-QVTONMVZ.js → chunk-ZIL2IY4C.js} +2 -2
- package/dist/cli/init.cjs +1266 -497
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/mcp-add.cjs +1171 -425
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +3 -3
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.js +3 -3
- package/dist/cli/validate.cjs +1168 -422
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{correlation-id-NAapJ5jn.d.cts → correlation-id-CFpyJsKv.d.cts} +1 -1
- package/dist/{correlation-id-B_K8adD6.d.ts → correlation-id-DPXyY9-3.d.ts} +1 -1
- package/dist/edge-entry.cjs +1197 -448
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +4 -4
- package/dist/index.cjs +1335 -552
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-CkTf_boH.d.ts → index.d-D-jdiIPU.d.cts} +1 -1
- package/dist/{index.d-CkTf_boH.d.cts → index.d-D-jdiIPU.d.ts} +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs +1192 -443
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +1323 -550
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs +1168 -422
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-CLYCE2TZ.js → source-map-uploader-K67LTPBG.js} +3 -3
- package/dist/trpc/index.cjs +1187 -438
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-6RKS3DNA.js.map +0 -1
- package/dist/chunk-DQFGNX3H.js.map +0 -1
- /package/dist/{chunk-OXM2BZMF.js.map → chunk-4YRYR32D.js.map} +0 -0
- /package/dist/{chunk-XG6WR2KS.js.map → chunk-6NKMAKMI.js.map} +0 -0
- /package/dist/{chunk-D54FMQHF.js.map → chunk-FFNGE5RR.js.map} +0 -0
- /package/dist/{chunk-RL43PU2X.js.map → chunk-J3ZCVE67.js.map} +0 -0
- /package/dist/{chunk-BSVWJSVX.js.map → chunk-KBHGPQZ2.js.map} +0 -0
- /package/dist/{chunk-M5GO2SSO.js.map → chunk-M3ZTG4P5.js.map} +0 -0
- /package/dist/{chunk-FQ4SEG6Y.js.map → chunk-V75ZB4G4.js.map} +0 -0
- /package/dist/{chunk-QVTONMVZ.js.map → chunk-ZIL2IY4C.js.map} +0 -0
- /package/dist/{source-map-uploader-CLYCE2TZ.js.map → source-map-uploader-K67LTPBG.js.map} +0 -0
package/README.md
CHANGED
|
@@ -526,9 +526,23 @@ operation kind (`email`, `calendar_link`, `webhook`, `external_api`,
|
|
|
526
526
|
optional execution phase (`request`, `post_response`, `background`,
|
|
527
527
|
`unknown`), and a small set of allowlisted semantic fields:
|
|
528
528
|
`templateKey`, `providerOperation`, `role`, `locale`, `timezone`,
|
|
529
|
-
`status`, `phase
|
|
530
|
-
|
|
531
|
-
|
|
529
|
+
`status`, `phase`, `recipientClass`, `participantCount`,
|
|
530
|
+
`activeParticipantCount`. Each value is bounded to compact tokens —
|
|
531
|
+
IANA timezones, BCP-47 locales, identifier-shaped enum tokens, or
|
|
532
|
+
non-negative integer strings for the count fields. The per-span
|
|
533
|
+
operation budget is five.
|
|
534
|
+
|
|
535
|
+
`recipientClass`, `participantCount`, and `activeParticipantCount`
|
|
536
|
+
let you record concise causal evidence about which recipient class
|
|
537
|
+
was targeted and how many domain entities were included. The two
|
|
538
|
+
count fields validate strictly as non-negative integer strings —
|
|
539
|
+
`"0"`, `"1"`, `"12"` are accepted; `"-1"`, `"1.5"`, `"many"`, or
|
|
540
|
+
any value with a non-digit character is rejected and counted under
|
|
541
|
+
the `raw_payload` omission reason. `recipientClass` uses the
|
|
542
|
+
identifier-shaped compact-token validator and preserves case
|
|
543
|
+
verbatim, so normalize labels at the call site —
|
|
544
|
+
`recipientClass="removed-participant"` (lowercase-kebab) is the
|
|
545
|
+
recommended convention.
|
|
532
546
|
|
|
533
547
|
What the SDK does not capture: recipient email addresses, sender or
|
|
534
548
|
recipient names, rendered email subjects or bodies, calendar links,
|
|
@@ -564,6 +578,9 @@ recordSideEffect({
|
|
|
564
578
|
role: "invitee",
|
|
565
579
|
locale: "en-US",
|
|
566
580
|
timezone: "Europe/Paris",
|
|
581
|
+
recipientClass: "removed-participant",
|
|
582
|
+
participantCount: "2",
|
|
583
|
+
activeParticipantCount: "1",
|
|
567
584
|
},
|
|
568
585
|
});
|
|
569
586
|
```
|