@osfactory/otel-hook 0.11.0 → 0.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 +26 -1
- package/dist/{adapter-DiLknaTF.d.ts → adapter-DQiPu8xF.d.ts} +2 -2
- package/dist/cli.js +371 -65
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +3 -3
- package/dist/config.js +16 -3
- package/dist/config.js.map +1 -1
- package/dist/{destinations-BIl3gGzx.d.ts → destinations-DvqsPulb.d.ts} +1 -1
- package/dist/{events-CSD_YiJ2.d.ts → events-fcomX6d5.d.ts} +22 -0
- package/dist/{export-destinations-QWKGGEjk.d.ts → export-destinations-CI7z4n3i.d.ts} +11 -6
- package/dist/{filesystem-store-D3SCNmbX.d.ts → filesystem-store-CmnUlj1O.d.ts} +1 -1
- package/dist/{hook-BOecWGSz.d.ts → hook-vM_cgqS2.d.ts} +11 -5
- package/dist/index.d.ts +14 -14
- package/dist/index.js +389 -100
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +4 -4
- package/dist/install.js +9 -1
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +16 -10
- package/dist/integration.js +341 -71
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +10 -2
- package/dist/lifecycle.js.map +1 -1
- package/dist/{memory-Cs51jyRk.d.ts → memory-DdU1U91y.d.ts} +2 -2
- package/dist/{metric-model-DDnWxL9d.d.ts → metric-model-C9lLqqpI.d.ts} +4 -1
- package/dist/model.d.ts +1 -1
- package/dist/model.js +9 -1
- package/dist/model.js.map +1 -1
- package/dist/{payload-ChtrEX6A.d.ts → payload-BT19hiVZ.d.ts} +1 -1
- package/dist/{ports-CeqLq31i.d.ts → ports-C3k_5eOQ.d.ts} +33 -2
- package/dist/providers.d.ts +10 -10
- package/dist/providers.js +10 -1
- package/dist/providers.js.map +1 -1
- package/dist/{registry-CcJNF3WY.d.ts → registry-gyJqaWmp.d.ts} +2 -2
- package/dist/runtime.d.ts +97 -9
- package/dist/runtime.js +257 -24
- package/dist/runtime.js.map +1 -1
- package/dist/{schema-DMnoU1V_.d.ts → schema-SpFM6YQY.d.ts} +24 -1
- package/dist/state.d.ts +4 -4
- package/dist/state.js +9 -1
- package/dist/state.js.map +1 -1
- package/dist/telemetry.d.ts +6 -6
- package/dist/telemetry.js +77 -22
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +10 -8
- package/dist/testing.js +109 -24
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/providers.js
CHANGED
|
@@ -647,7 +647,15 @@ var baseEventFields = {
|
|
|
647
647
|
* factory, never by hand.
|
|
648
648
|
*/
|
|
649
649
|
subagentId: subagentIdSchema.optional(),
|
|
650
|
-
extensions: extensionsSchema.default(emptyExtensions)
|
|
650
|
+
extensions: extensionsSchema.default(emptyExtensions),
|
|
651
|
+
/**
|
|
652
|
+
* Attributes of the session context segment in force when the event
|
|
653
|
+
* occurred (`docs/session-context.md`), stamped by the core from a file a
|
|
654
|
+
* harness wrote. Exported on every record of the event, over the same keys
|
|
655
|
+
* from the Resource. Absent when no context applies. Set by the core only,
|
|
656
|
+
* never by an adapter.
|
|
657
|
+
*/
|
|
658
|
+
contextAttributes: z9.record(z9.string().min(1).max(255), z9.union([z9.string(), z9.number(), z9.boolean()])).optional()
|
|
651
659
|
};
|
|
652
660
|
var event = (shape) => z9.strictObject({ ...baseEventFields, ...shape });
|
|
653
661
|
var sessionStartEventSchema = event({
|
|
@@ -1006,6 +1014,7 @@ var createEventFactory = (input) => {
|
|
|
1006
1014
|
const rest = { ...drafted };
|
|
1007
1015
|
delete rest.target;
|
|
1008
1016
|
delete rest.subagentId;
|
|
1017
|
+
delete rest.contextAttributes;
|
|
1009
1018
|
const sanitized = extensions === void 0 ? { extensions: {}, droppedKeys: [] } : context.privacy.sanitizeExtensions(extensions);
|
|
1010
1019
|
dropped.push(...sanitized.droppedKeys);
|
|
1011
1020
|
const currentSequence = sequence;
|