@osfactory/otel-hook 0.11.0 → 0.13.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.
Files changed (49) hide show
  1. package/README.md +32 -5
  2. package/dist/{adapter-DiLknaTF.d.ts → adapter-DyCb7y1N.d.ts} +2 -2
  3. package/dist/cli.js +507 -108
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.d.ts +3 -3
  6. package/dist/config.js +16 -3
  7. package/dist/config.js.map +1 -1
  8. package/dist/{destinations-BIl3gGzx.d.ts → destinations-DvqsPulb.d.ts} +1 -1
  9. package/dist/{events-CSD_YiJ2.d.ts → events-fcomX6d5.d.ts} +22 -0
  10. package/dist/{export-destinations-QWKGGEjk.d.ts → export-destinations-Bey2djRk.d.ts} +11 -6
  11. package/dist/{filesystem-store-D3SCNmbX.d.ts → filesystem-store-B3CpiIRl.d.ts} +1 -1
  12. package/dist/{hook-BOecWGSz.d.ts → hook-D5imE0Qc.d.ts} +11 -5
  13. package/dist/index.d.ts +14 -14
  14. package/dist/index.js +525 -143
  15. package/dist/index.js.map +1 -1
  16. package/dist/install.d.ts +4 -4
  17. package/dist/install.js +19 -2
  18. package/dist/install.js.map +1 -1
  19. package/dist/integration.d.ts +16 -10
  20. package/dist/integration.js +447 -111
  21. package/dist/integration.js.map +1 -1
  22. package/dist/lifecycle.d.ts +3 -3
  23. package/dist/lifecycle.js +10 -2
  24. package/dist/lifecycle.js.map +1 -1
  25. package/dist/{memory-Cs51jyRk.d.ts → memory-B3r6sZtC.d.ts} +2 -2
  26. package/dist/{metric-model-DDnWxL9d.d.ts → metric-model-CFIeUwqd.d.ts} +6 -2
  27. package/dist/model.d.ts +1 -1
  28. package/dist/model.js +9 -1
  29. package/dist/model.js.map +1 -1
  30. package/dist/{payload-ChtrEX6A.d.ts → payload-CdDKeRpH.d.ts} +1 -1
  31. package/dist/{ports-CeqLq31i.d.ts → ports-DhpSDIkp.d.ts} +41 -3
  32. package/dist/providers.d.ts +30 -14
  33. package/dist/providers.js +131 -42
  34. package/dist/providers.js.map +1 -1
  35. package/dist/{registry-CcJNF3WY.d.ts → registry-BKQhhIO3.d.ts} +2 -2
  36. package/dist/runtime.d.ts +97 -9
  37. package/dist/runtime.js +269 -26
  38. package/dist/runtime.js.map +1 -1
  39. package/dist/{schema-DMnoU1V_.d.ts → schema-SpFM6YQY.d.ts} +24 -1
  40. package/dist/state.d.ts +4 -4
  41. package/dist/state.js +9 -1
  42. package/dist/state.js.map +1 -1
  43. package/dist/telemetry.d.ts +6 -6
  44. package/dist/telemetry.js +80 -22
  45. package/dist/telemetry.js.map +1 -1
  46. package/dist/testing.d.ts +10 -8
  47. package/dist/testing.js +161 -30
  48. package/dist/testing.js.map +1 -1
  49. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { g as StateStore, C as Clock } from './ports-CeqLq31i.js';
1
+ import { j as StateStore, C as Clock } from './ports-DhpSDIkp.js';
2
2
  import { Attributes } from '@opentelemetry/api';
3
- import { b as CanonicalEvent, f as CanonicalUsage } from './events-CSD_YiJ2.js';
4
- import { p as SpanFamily, s as SpanScopeRef, m as SpanCorrelation, j as MetricObservation, k as MetricPoint } from './metric-model-DDnWxL9d.js';
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-CFIeUwqd.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.11.0";
274
+ var VERSION = "0.13.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({