autotel-terminal 43.0.0 → 44.0.1
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 +4 -4
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-Db5VfN-J.js → src-C8UWgifK.js} +8 -7
- package/dist/{src-g5ijfOwQ.cjs → src-CNlZVetJ.cjs} +8 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ If you need a **standalone, multi-signal TUI** that receives OTLP/Zipkin/Prometh
|
|
|
16
16
|
- ✅ **Trace-first UI** : Recent traces list; open a trace to see its span tree (parent/child)
|
|
17
17
|
- ✅ **Real-time streaming** : Spans appear as they complete; optional pause/resume
|
|
18
18
|
- ✅ **Search** : Filter by span name (`/`); combine with error-only filter (`e`)
|
|
19
|
-
- ✅ **Span details** : Key attributes first (e.g. `http.route`, `db.operation`); full list + waterfall for selected trace
|
|
19
|
+
- ✅ **Span details** : Key attributes first (e.g. `http.route`, `db.operation.name`); full list + waterfall for selected trace
|
|
20
20
|
- ✅ **Relative time & errors** : "2s ago" labels; error badge and new-error indicator
|
|
21
21
|
- ✅ **Help overlay** : `?` shows all shortcuts
|
|
22
22
|
- ✅ **Simple setup** : Add `StreamingSpanProcessor` to autotel and call `renderTerminal()`
|
|
@@ -234,7 +234,7 @@ The right panel shows detailed information for the selected span:
|
|
|
234
234
|
- Name, status, duration (with "Nx avg" when slower than average for that span name)
|
|
235
235
|
- Trace ID, Span ID, Parent Span ID
|
|
236
236
|
- Span kind (INTERNAL, SERVER, CLIENT, etc.)
|
|
237
|
-
- **Key attributes** (http.route, db.operation, code.function, etc.) first
|
|
237
|
+
- **Key attributes** (http.route, db.operation.name, code.function, etc.) first
|
|
238
238
|
- Remaining attributes
|
|
239
239
|
- **Waterfall** for the selected trace (when a trace is open): horizontal bars by duration
|
|
240
240
|
|
|
@@ -484,7 +484,7 @@ logStream.emit({
|
|
|
484
484
|
attributes: {
|
|
485
485
|
'service.name': 'my-service',
|
|
486
486
|
'http.route': '/users/:id',
|
|
487
|
-
'http.status_code': 200,
|
|
487
|
+
'http.response.status_code': 200,
|
|
488
488
|
},
|
|
489
489
|
});
|
|
490
490
|
```
|
|
@@ -520,7 +520,7 @@ When testing the dashboard (e.g. with `example-terminal` or your app), you can v
|
|
|
520
520
|
- **Errors** : Press `e` for error-only filter; traces with failed spans show an error badge
|
|
521
521
|
- **Help** : Press `?` to see all shortcuts
|
|
522
522
|
- **Waterfall** : With a trace open, the details panel shows a simple duration waterfall
|
|
523
|
-
- **Key attributes** : In span details, `http.route`, `db.operation`, `code.function`, etc. appear first
|
|
523
|
+
- **Key attributes** : In span details, `http.route`, `db.operation.name`, `code.function`, etc. appear first
|
|
524
524
|
|
|
525
525
|
## Examples
|
|
526
526
|
|
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getTerminalLogStream, i as renderTerminal } from "./src-
|
|
2
|
+
import { a as getTerminalLogStream, i as renderTerminal } from "./src-C8UWgifK.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { createServer } from "node:http";
|
|
5
5
|
import path from "node:path";
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-CNlZVetJ.cjs');
|
|
3
3
|
let autotel_exporters = require("autotel/exporters");
|
|
4
4
|
let autotel = require("autotel");
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as getTerminalLogStream, i as renderTerminal, n as SpanKind, o as createTerminalSpanStream, r as SpanStatusCode, s as StreamingSpanProcessor, t as PrettyConsoleExporter } from "./src-
|
|
1
|
+
import { a as getTerminalLogStream, i as renderTerminal, n as SpanKind, o as createTerminalSpanStream, r as SpanStatusCode, s as StreamingSpanProcessor, t as PrettyConsoleExporter } from "./src-C8UWgifK.js";
|
|
2
2
|
|
|
3
3
|
export { PrettyConsoleExporter, SpanKind, SpanStatusCode, StreamingSpanProcessor, createTerminalSpanStream, getTerminalLogStream, renderTerminal };
|
|
@@ -622,7 +622,8 @@ function getRoute(span) {
|
|
|
622
622
|
return stringAttr(span.attributes ?? {}, "http.route") ?? void 0;
|
|
623
623
|
}
|
|
624
624
|
function getStatusCode(span) {
|
|
625
|
-
const
|
|
625
|
+
const attrs = span.attributes ?? {};
|
|
626
|
+
const code = attrs["http.response.status_code"] ?? attrs["http.status_code"];
|
|
626
627
|
if (typeof code === "number") return code;
|
|
627
628
|
if (typeof code === "string") {
|
|
628
629
|
const n = Number(code);
|
|
@@ -675,7 +676,7 @@ function getRouteFromSpans(spans) {
|
|
|
675
676
|
}
|
|
676
677
|
function getStatusCodeFromSpans(spans) {
|
|
677
678
|
for (const span of spans) {
|
|
678
|
-
const code = span.attributes?.["http.status_code"];
|
|
679
|
+
const code = span.attributes?.["http.response.status_code"] ?? span.attributes?.["http.status_code"];
|
|
679
680
|
if (typeof code === "number") return code;
|
|
680
681
|
if (typeof code === "string") {
|
|
681
682
|
const n = Number(code);
|
|
@@ -710,7 +711,7 @@ function getServiceName(span) {
|
|
|
710
711
|
}
|
|
711
712
|
function getPeerService(span) {
|
|
712
713
|
const attrs = span.attributes ?? {};
|
|
713
|
-
return stringAttr(attrs, "peer.service") ?? stringAttr(attrs, "db.system") ?? stringAttr(attrs, "messaging.system") ?? stringAttr(attrs, "http.host") ?? null;
|
|
714
|
+
return stringAttr(attrs, "service.peer.name") ?? stringAttr(attrs, "peer.service") ?? stringAttr(attrs, "db.system.name") ?? stringAttr(attrs, "db.system") ?? stringAttr(attrs, "messaging.system") ?? stringAttr(attrs, "http.host") ?? null;
|
|
714
715
|
}
|
|
715
716
|
function buildServiceGraph(spans) {
|
|
716
717
|
const byService = /* @__PURE__ */ new Map();
|
|
@@ -1053,11 +1054,11 @@ function createTelemetryTools(ctx, onRenderUI) {
|
|
|
1053
1054
|
kind: s.kind,
|
|
1054
1055
|
parentSpanId: s.parentSpanId?.slice(0, 8),
|
|
1055
1056
|
attrs: Object.fromEntries(Object.entries(s.attributes ?? {}).filter(([k]) => [
|
|
1056
|
-
"http.method",
|
|
1057
|
+
"http.request.method",
|
|
1057
1058
|
"http.route",
|
|
1058
|
-
"http.status_code",
|
|
1059
|
-
"db.operation",
|
|
1060
|
-
"db.system",
|
|
1059
|
+
"http.response.status_code",
|
|
1060
|
+
"db.operation.name",
|
|
1061
|
+
"db.system.name",
|
|
1061
1062
|
"service.name",
|
|
1062
1063
|
"error.message",
|
|
1063
1064
|
"error.type"
|
|
@@ -650,7 +650,8 @@ function getRoute(span) {
|
|
|
650
650
|
return stringAttr(span.attributes ?? {}, "http.route") ?? void 0;
|
|
651
651
|
}
|
|
652
652
|
function getStatusCode(span) {
|
|
653
|
-
const
|
|
653
|
+
const attrs = span.attributes ?? {};
|
|
654
|
+
const code = attrs["http.response.status_code"] ?? attrs["http.status_code"];
|
|
654
655
|
if (typeof code === "number") return code;
|
|
655
656
|
if (typeof code === "string") {
|
|
656
657
|
const n = Number(code);
|
|
@@ -703,7 +704,7 @@ function getRouteFromSpans(spans) {
|
|
|
703
704
|
}
|
|
704
705
|
function getStatusCodeFromSpans(spans) {
|
|
705
706
|
for (const span of spans) {
|
|
706
|
-
const code = span.attributes?.["http.status_code"];
|
|
707
|
+
const code = span.attributes?.["http.response.status_code"] ?? span.attributes?.["http.status_code"];
|
|
707
708
|
if (typeof code === "number") return code;
|
|
708
709
|
if (typeof code === "string") {
|
|
709
710
|
const n = Number(code);
|
|
@@ -738,7 +739,7 @@ function getServiceName(span) {
|
|
|
738
739
|
}
|
|
739
740
|
function getPeerService(span) {
|
|
740
741
|
const attrs = span.attributes ?? {};
|
|
741
|
-
return stringAttr(attrs, "peer.service") ?? stringAttr(attrs, "db.system") ?? stringAttr(attrs, "messaging.system") ?? stringAttr(attrs, "http.host") ?? null;
|
|
742
|
+
return stringAttr(attrs, "service.peer.name") ?? stringAttr(attrs, "peer.service") ?? stringAttr(attrs, "db.system.name") ?? stringAttr(attrs, "db.system") ?? stringAttr(attrs, "messaging.system") ?? stringAttr(attrs, "http.host") ?? null;
|
|
742
743
|
}
|
|
743
744
|
function buildServiceGraph(spans) {
|
|
744
745
|
const byService = /* @__PURE__ */ new Map();
|
|
@@ -1081,11 +1082,11 @@ function createTelemetryTools(ctx, onRenderUI) {
|
|
|
1081
1082
|
kind: s.kind,
|
|
1082
1083
|
parentSpanId: s.parentSpanId?.slice(0, 8),
|
|
1083
1084
|
attrs: Object.fromEntries(Object.entries(s.attributes ?? {}).filter(([k]) => [
|
|
1084
|
-
"http.method",
|
|
1085
|
+
"http.request.method",
|
|
1085
1086
|
"http.route",
|
|
1086
|
-
"http.status_code",
|
|
1087
|
-
"db.operation",
|
|
1088
|
-
"db.system",
|
|
1087
|
+
"http.response.status_code",
|
|
1088
|
+
"db.operation.name",
|
|
1089
|
+
"db.system.name",
|
|
1089
1090
|
"service.name",
|
|
1090
1091
|
"error.message",
|
|
1091
1092
|
"error.type"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-terminal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "44.0.1",
|
|
4
4
|
"description": "Terminal dashboard for autotel traces using react-ink",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@opentelemetry/api": "^1.9.1",
|
|
55
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
56
|
-
"autotel": "7.
|
|
55
|
+
"@opentelemetry/sdk-trace-base": "^2.11.0",
|
|
56
|
+
"autotel": "7.6.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"@types/react": "^19.2.17",
|
|
63
63
|
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
64
64
|
"@typescript-eslint/parser": "^8.65.0",
|
|
65
|
+
"autotel": "7.6.1",
|
|
65
66
|
"eslint-config-prettier": "^10.1.8",
|
|
66
67
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
67
68
|
"prettier": "^3.9.6",
|
|
@@ -69,8 +70,7 @@
|
|
|
69
70
|
"tsdown": "^0.22.14",
|
|
70
71
|
"typescript": "^6.0.3",
|
|
71
72
|
"typescript-eslint": "^8.65.0",
|
|
72
|
-
"vitest": "^4.1.10"
|
|
73
|
-
"autotel": "7.5.0"
|
|
73
|
+
"vitest": "^4.1.10"
|
|
74
74
|
},
|
|
75
75
|
"repository": {
|
|
76
76
|
"type": "git",
|