autotel-devtools 28.0.2 → 28.0.4

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/dist/cli.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- const require_http = require('./http-B1v_UPgL.cjs');
2
+ const require_http = require('./http-DivT1psl.cjs');
3
3
  const require_listen = require('./listen-l09RRHht.cjs');
4
- const require_grpc = require('./grpc-CU54oyWh.cjs');
4
+ const require_grpc = require('./grpc-C7ChqlIR.cjs');
5
5
  let node_http = require("node:http");
6
6
  let node_fs = require("node:fs");
7
7
  let node_path = require("node:path");
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { a as probePortHolder, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-CBOtd0Yi.js";
2
+ import { a as probePortHolder, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-_YFCbDKW.js";
3
3
  import { t as listenLoopbackDualStack } from "./listen-D-lLgfro.js";
4
- import { t as startOtlpGrpcReceiver } from "./grpc-D0ZTTAmW.js";
4
+ import { t as startOtlpGrpcReceiver } from "./grpc-Co34NMmR.js";
5
5
  import { createServer } from "node:http";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { dirname, resolve } from "node:path";
@@ -1,4 +1,4 @@
1
- const require_http = require('./http-B1v_UPgL.cjs');
1
+ const require_http = require('./http-DivT1psl.cjs');
2
2
  let _grpc_grpc_js = require("@grpc/grpc-js");
3
3
 
4
4
  //#region src/server/grpc.ts
@@ -1,4 +1,4 @@
1
- import { c as decodeOtlpTraceRequest, o as decodeOtlpLogsRequest, s as decodeOtlpMetricsRequest } from "./http-CBOtd0Yi.js";
1
+ import { c as decodeOtlpTraceRequest, o as decodeOtlpLogsRequest, s as decodeOtlpMetricsRequest } from "./http-_YFCbDKW.js";
2
2
  import { Server, ServerCredentials, status } from "@grpc/grpc-js";
3
3
 
4
4
  //#region src/server/grpc.ts
@@ -111,7 +111,7 @@ var ErrorAggregator = class {
111
111
  extractErrorFromSpan(span, trace) {
112
112
  const exceptionEvent = span.events?.find((e) => e.name === "exception");
113
113
  const errorType = require_json_fields.stringAttr(span.attributes, "exception.type", "error.type") ?? require_json_fields.stringAttr(exceptionEvent?.attributes, "exception.type") ?? "Error";
114
- const errorMessage = span.status.message || require_json_fields.stringAttr(span.attributes, "exception.message", "error.message") || "Unknown error";
114
+ const errorMessage = span.status.message || require_json_fields.stringAttr(span.attributes, "exception.message", "error.message") || require_json_fields.stringAttr(exceptionEvent?.attributes, "exception.message") || errorType;
115
115
  const stackTrace = require_json_fields.stringAttr(span.attributes, "exception.stacktrace", "exception.stack", "error.stack") ?? this.extractStackFromEvents(span);
116
116
  return {
117
117
  traceId: trace.traceId,
@@ -3883,7 +3883,7 @@ function attachDevtoolsRoutes(httpServer, devtools, options = {}) {
3883
3883
  if (!(0, node_fs.existsSync)(mapPath)) {
3884
3884
  sendJson(res, 404, {
3885
3885
  error: "No instrumentation map",
3886
- message: "Run `npx autotel map` to record this project's entry points, then reload."
3886
+ message: "Run `npx autotel-cli map` to record this project's entry points, then reload."
3887
3887
  });
3888
3888
  return;
3889
3889
  }
@@ -82,7 +82,7 @@ var ErrorAggregator = class {
82
82
  extractErrorFromSpan(span, trace) {
83
83
  const exceptionEvent = span.events?.find((e) => e.name === "exception");
84
84
  const errorType = stringAttr(span.attributes, "exception.type", "error.type") ?? stringAttr(exceptionEvent?.attributes, "exception.type") ?? "Error";
85
- const errorMessage = span.status.message || stringAttr(span.attributes, "exception.message", "error.message") || "Unknown error";
85
+ const errorMessage = span.status.message || stringAttr(span.attributes, "exception.message", "error.message") || stringAttr(exceptionEvent?.attributes, "exception.message") || errorType;
86
86
  const stackTrace = stringAttr(span.attributes, "exception.stacktrace", "exception.stack", "error.stack") ?? this.extractStackFromEvents(span);
87
87
  return {
88
88
  traceId: trace.traceId,
@@ -3854,7 +3854,7 @@ function attachDevtoolsRoutes(httpServer, devtools, options = {}) {
3854
3854
  if (!existsSync(mapPath)) {
3855
3855
  sendJson(res, 404, {
3856
3856
  error: "No instrumentation map",
3857
- message: "Run `npx autotel map` to record this project's entry points, then reload."
3857
+ message: "Run `npx autotel-cli map` to record this project's entry points, then reload."
3858
3858
  });
3859
3859
  return;
3860
3860
  }
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_http = require('./http-B1v_UPgL.cjs');
2
+ const require_http = require('./http-DivT1psl.cjs');
3
3
  const require_listen = require('./listen-l09RRHht.cjs');
4
4
  const require_server_exporter = require('./server/exporter.cjs');
5
5
  const require_server_log_exporter = require('./server/log-exporter.cjs');
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ErrorAggregator, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-CBOtd0Yi.js";
1
+ import { C as ErrorAggregator, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-_YFCbDKW.js";
2
2
  import { t as listenLoopbackDualStack } from "./listen-D-lLgfro.js";
3
3
  import { DevtoolsSpanExporter } from "./server/exporter.js";
4
4
  import { DevtoolsLogExporter } from "./server/log-exporter.js";
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_http = require('../http-B1v_UPgL.cjs');
2
+ const require_http = require('../http-DivT1psl.cjs');
3
3
  const require_server_exporter = require('./exporter.cjs');
4
4
  const require_server_log_exporter = require('./log-exporter.cjs');
5
5
  const require_server_remote_exporter = require('./remote-exporter.cjs');
6
- const require_grpc = require('../grpc-CU54oyWh.cjs');
6
+ const require_grpc = require('../grpc-C7ChqlIR.cjs');
7
7
 
8
8
  exports.DEVTOOLS_IDENTITY = require_http.DEVTOOLS_IDENTITY;
9
9
  exports.DevtoolsLogExporter = require_server_log_exporter.DevtoolsLogExporter;
@@ -1,7 +1,7 @@
1
- import { C as ErrorAggregator, S as resolveTelemetryLimits, _ as isLoopbackHostname, a as probePortHolder, b as appendWithLimit, c as decodeOtlpTraceRequest, d as parseOtlpLogs, f as parseOtlpTraces, g as hostHeaderIsLoopback, h as allowSensitiveRequest, i as DEVTOOLS_IDENTITY, l as DevtoolsServer, m as SPAN_SCHEMA, n as createDevtoolsHttpServer, o as decodeOtlpLogsRequest, p as DevtoolsStore, s as decodeOtlpMetricsRequest, t as attachDevtoolsRoutes, u as isProtobufContentType, v as originIsLoopback, x as applyTelemetryLimits, y as appendManyWithLimit } from "../http-CBOtd0Yi.js";
1
+ import { C as ErrorAggregator, S as resolveTelemetryLimits, _ as isLoopbackHostname, a as probePortHolder, b as appendWithLimit, c as decodeOtlpTraceRequest, d as parseOtlpLogs, f as parseOtlpTraces, g as hostHeaderIsLoopback, h as allowSensitiveRequest, i as DEVTOOLS_IDENTITY, l as DevtoolsServer, m as SPAN_SCHEMA, n as createDevtoolsHttpServer, o as decodeOtlpLogsRequest, p as DevtoolsStore, s as decodeOtlpMetricsRequest, t as attachDevtoolsRoutes, u as isProtobufContentType, v as originIsLoopback, x as applyTelemetryLimits, y as appendManyWithLimit } from "../http-_YFCbDKW.js";
2
2
  import { DevtoolsSpanExporter } from "./exporter.js";
3
3
  import { DevtoolsLogExporter } from "./log-exporter.js";
4
4
  import { DevtoolsRemoteExporter } from "./remote-exporter.js";
5
- import { t as startOtlpGrpcReceiver } from "../grpc-D0ZTTAmW.js";
5
+ import { t as startOtlpGrpcReceiver } from "../grpc-Co34NMmR.js";
6
6
 
7
7
  export { DEVTOOLS_IDENTITY, DevtoolsLogExporter, DevtoolsRemoteExporter, DevtoolsServer, DevtoolsSpanExporter, DevtoolsStore, ErrorAggregator, SPAN_SCHEMA, allowSensitiveRequest, appendManyWithLimit, appendWithLimit, applyTelemetryLimits, attachDevtoolsRoutes, createDevtoolsHttpServer, decodeOtlpLogsRequest, decodeOtlpMetricsRequest, decodeOtlpTraceRequest, hostHeaderIsLoopback, isLoopbackHostname, isProtobufContentType, originIsLoopback, parseOtlpLogs, parseOtlpTraces, probePortHolder, resolveTelemetryLimits, startOtlpGrpcReceiver };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-devtools",
3
- "version": "28.0.2",
3
+ "version": "28.0.4",
4
4
  "description": "Standalone OTLP receiver with web UI for local development",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -109,7 +109,7 @@
109
109
  "webmcpable": "^0.5.0"
110
110
  },
111
111
  "peerDependencies": {
112
- "autotel": "7.7.0"
112
+ "autotel": "7.7.1"
113
113
  },
114
114
  "peerDependenciesMeta": {
115
115
  "autotel": {