@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/lifecycle.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as StateStore, C as Clock } from './ports-C3k_5eOQ.js';
|
|
2
2
|
import { Attributes } from '@opentelemetry/api';
|
|
3
|
-
import { b as CanonicalEvent, f as CanonicalUsage } from './events-
|
|
4
|
-
import { p as SpanFamily, s as SpanScopeRef, m as SpanCorrelation, j as MetricObservation, k as MetricPoint } from './metric-model-
|
|
3
|
+
import { b as CanonicalEvent, f as CanonicalUsage } from './events-fcomX6d5.js';
|
|
4
|
+
import { p as SpanFamily, s as SpanScopeRef, m as SpanCorrelation, j as MetricObservation, k as MetricPoint } from './metric-model-C9lLqqpI.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './errors.js';
|
|
7
7
|
import './primitives-CJ8-rn-f.js';
|
package/dist/lifecycle.js
CHANGED
|
@@ -271,7 +271,7 @@ import {
|
|
|
271
271
|
} from "@opentelemetry/semantic-conventions/incubating";
|
|
272
272
|
|
|
273
273
|
// src/version.ts
|
|
274
|
-
var VERSION = "0.
|
|
274
|
+
var VERSION = "0.12.0";
|
|
275
275
|
|
|
276
276
|
// src/telemetry/export-identity.ts
|
|
277
277
|
import { ATTR_SESSION_ID } from "@opentelemetry/semantic-conventions/incubating";
|
|
@@ -866,7 +866,15 @@ var baseEventFields = {
|
|
|
866
866
|
* factory, never by hand.
|
|
867
867
|
*/
|
|
868
868
|
subagentId: subagentIdSchema.optional(),
|
|
869
|
-
extensions: extensionsSchema.default(emptyExtensions)
|
|
869
|
+
extensions: extensionsSchema.default(emptyExtensions),
|
|
870
|
+
/**
|
|
871
|
+
* Attributes of the session context segment in force when the event
|
|
872
|
+
* occurred (`docs/session-context.md`), stamped by the core from a file a
|
|
873
|
+
* harness wrote. Exported on every record of the event, over the same keys
|
|
874
|
+
* from the Resource. Absent when no context applies. Set by the core only,
|
|
875
|
+
* never by an adapter.
|
|
876
|
+
*/
|
|
877
|
+
contextAttributes: z9.record(z9.string().min(1).max(255), z9.union([z9.string(), z9.number(), z9.boolean()])).optional()
|
|
870
878
|
};
|
|
871
879
|
var event = (shape) => z9.strictObject({ ...baseEventFields, ...shape });
|
|
872
880
|
var sessionStartEventSchema = event({
|