@autter/runtime-node 1.5.0 → 1.6.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.
@@ -90,6 +90,35 @@ var compat_manifest_default = {
90
90
  ingester: "1.5.0",
91
91
  migrations: ["0013-occurrence-codes"],
92
92
  sdks: { "@autter/runtime-node": "1.5.0", "@autter/runtime-next": "1.5.0", "@autter/runtime-browser": "1.4.0", "@autter/runtime-edge": "1.0.0" }
93
+ },
94
+ {
95
+ id: "breadcrumbs",
96
+ title: "Breadcrumbs: the steps before an error",
97
+ ingester: "1.6.0",
98
+ migrations: [],
99
+ sdks: { "@autter/runtime-browser": "1.6.0", "@autter/runtime-node": "1.6.0", "@autter/runtime-next": "1.6.0" }
100
+ },
101
+ {
102
+ id: "source_map_debug_ids",
103
+ title: "Source map debug ids",
104
+ ingester: "1.6.0",
105
+ migrations: ["0017-source-maps-debug-id"],
106
+ route: "/v1/sourcemaps/check",
107
+ sdks: { "@autter/runtime-browser": "1.6.0", "@autter/runtime-next": "1.6.0" }
108
+ },
109
+ {
110
+ id: "fingerprint_override",
111
+ title: "Fingerprint override",
112
+ ingester: "1.6.0",
113
+ migrations: [],
114
+ sdks: { "@autter/runtime-browser": "1.6.0", "@autter/runtime-node": "1.6.0", "@autter/runtime-next": "1.6.0", "@autter/runtime-edge": "1.1.0" }
115
+ },
116
+ {
117
+ id: "browser_trace_propagation",
118
+ title: "Browser trace propagation (browser errors linked to server traces)",
119
+ ingester: "1.6.0",
120
+ migrations: [],
121
+ sdks: { "@autter/runtime-browser": "1.6.0", "@autter/runtime-next": "1.6.0", "@autter/runtime-node": "1.6.0" }
93
122
  }
94
123
  ]
95
124
  };
@@ -435,7 +464,7 @@ import { request as httpsRequest } from "https";
435
464
  // package.json
436
465
  var package_default = {
437
466
  name: "@autter/runtime-node",
438
- version: "1.5.0",
467
+ version: "1.6.0",
439
468
  description: "Autter Runtime for Node.js: request wide events, coded errors, operation logging, same-origin browser relay and a curated OpenTelemetry server tracker",
440
469
  license: "MIT",
441
470
  type: "module",
@@ -486,6 +515,8 @@ var package_default = {
486
515
  "@autter/runtime-core": "0.0.0",
487
516
  "@types/node": "^22.10.0",
488
517
  express: "^4.21.2",
518
+ fastify: "^5.12.5",
519
+ koa: "^3.2.1",
489
520
  tsup: "^8.3.5",
490
521
  typescript: "^5.7.0"
491
522
  },
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkGI47WGRRcjs = require('./chunk-GI47WGRR.cjs');
8
+ var _chunkARN26OK6cjs = require('./chunk-ARN26OK6.cjs');
9
9
 
10
10
  // src/doctor.ts
11
11
  var _fs = require('fs');
@@ -30,19 +30,19 @@ function installedSdks(cwd) {
30
30
  }
31
31
  if (_path.dirname.call(void 0, dir) === dir) break;
32
32
  }
33
- if (!found.has(_chunkGI47WGRRcjs.SDK_IDENTITY.name)) found.set(_chunkGI47WGRRcjs.SDK_IDENTITY.name, _chunkGI47WGRRcjs.SDK_IDENTITY.version);
33
+ if (!found.has(_chunkARN26OK6cjs.SDK_IDENTITY.name)) found.set(_chunkARN26OK6cjs.SDK_IDENTITY.name, _chunkARN26OK6cjs.SDK_IDENTITY.version);
34
34
  return [...found].map(([name, version]) => ({ name, version }));
35
35
  }
36
36
  function featuresInUse(sdks) {
37
- return _chunkGI47WGRRcjs.COMPAT_MANIFEST.features.filter(
37
+ return _chunkARN26OK6cjs.COMPAT_MANIFEST.features.filter(
38
38
  (feature) => sdks.some((sdk) => {
39
39
  const min = feature.sdks[sdk.name];
40
- return min !== void 0 && _chunkGI47WGRRcjs.versionAtLeast.call(void 0, sdk.version, min) === true;
40
+ return min !== void 0 && _chunkARN26OK6cjs.versionAtLeast.call(void 0, sdk.version, min) === true;
41
41
  })
42
42
  ).map((feature) => feature.id);
43
43
  }
44
44
  async function checkKey(endpoint, key, timeoutMs) {
45
- const res = await _chunkGI47WGRRcjs.compatRequest.call(void 0, "POST", `${endpoint}/v1/traces`, {
45
+ const res = await _chunkARN26OK6cjs.compatRequest.call(void 0, "POST", `${endpoint}/v1/traces`, {
46
46
  body: JSON.stringify({ resourceSpans: [] }),
47
47
  headers: { authorization: `Bearer ${key}` },
48
48
  unref: false,
@@ -62,10 +62,10 @@ async function runDoctor(options = {}) {
62
62
  const features = _optionalChain([options, 'access', _ => _.features, 'optionalAccess', _2 => _2.length]) ? options.features : featuresInUse(sdks);
63
63
  const routes = [
64
64
  ...new Set(
65
- features.map((id) => _optionalChain([_chunkGI47WGRRcjs.COMPAT_MANIFEST, 'access', _3 => _3.features, 'access', _4 => _4.find, 'call', _5 => _5((f) => f.id === id), 'optionalAccess', _6 => _6.route])).filter((route) => Boolean(route))
65
+ features.map((id) => _optionalChain([_chunkARN26OK6cjs.COMPAT_MANIFEST, 'access', _3 => _3.features, 'access', _4 => _4.find, 'call', _5 => _5((f) => f.id === id), 'optionalAccess', _6 => _6.route])).filter((route) => Boolean(route))
66
66
  )
67
67
  ];
68
- const { info, error } = await _chunkGI47WGRRcjs.fetchIngesterCompat.call(void 0, endpoint, { probeRoutes: routes, unref: false, timeoutMs });
68
+ const { info, error } = await _chunkARN26OK6cjs.fetchIngesterCompat.call(void 0, endpoint, { probeRoutes: routes, unref: false, timeoutMs });
69
69
  const issues = [];
70
70
  const seen = /* @__PURE__ */ new Set();
71
71
  const add = (issue) => {
@@ -75,15 +75,15 @@ async function runDoctor(options = {}) {
75
75
  issues.push(issue);
76
76
  }
77
77
  };
78
- _chunkGI47WGRRcjs.evaluateCompat.call(void 0, { features, ingester: info }).forEach(add);
78
+ _chunkARN26OK6cjs.evaluateCompat.call(void 0, { features, ingester: info }).forEach(add);
79
79
  for (const sdk of sdks) {
80
80
  if (_optionalChain([options, 'access', _7 => _7.features, 'optionalAccess', _8 => _8.length])) {
81
- _chunkGI47WGRRcjs.evaluateCompat.call(void 0, { features: options.features, ingester: null, sdk }).forEach(add);
81
+ _chunkARN26OK6cjs.evaluateCompat.call(void 0, { features: options.features, ingester: null, sdk }).forEach(add);
82
82
  }
83
83
  }
84
84
  const key = options.key ? await checkKey(endpoint, options.key, timeoutMs) : void 0;
85
85
  const featureRows = features.flatMap((id) => {
86
- const feature = _chunkGI47WGRRcjs.COMPAT_MANIFEST.features.find((f) => f.id === id);
86
+ const feature = _chunkARN26OK6cjs.COMPAT_MANIFEST.features.find((f) => f.id === id);
87
87
  if (!feature) return [];
88
88
  const bad = issues.some((issue) => issue.feature === id);
89
89
  const known = _optionalChain([info, 'optionalAccess', _9 => _9.version]) != null || feature.route !== void 0 && _optionalChain([info, 'optionalAccess', _10 => _10.routes, 'optionalAccess', _11 => _11[feature.route]]) !== void 0;
@@ -153,7 +153,7 @@ Checks that your Autter SDKs, ingester and ClickHouse schema versions match.
153
153
  Options:
154
154
  --endpoint <url> Ingester base URL (default: $AUTTER_ENDPOINT, $OTEL_EXPORTER_OTLP_ENDPOINT, or ${DEFAULT_ENDPOINT})
155
155
  --key <key> Also verify an ingest key (default: $AUTTER_RUNTIME_KEY)
156
- --features <a,b> Only check these features (${_chunkGI47WGRRcjs.COMPAT_MANIFEST.features.map((f) => f.id).join(", ")})
156
+ --features <a,b> Only check these features (${_chunkARN26OK6cjs.COMPAT_MANIFEST.features.map((f) => f.id).join(", ")})
157
157
  --json Machine-readable output
158
158
  --timeout <ms> Per-request timeout (default 5000)
159
159