@culpritsql/plan-viewer 0.5.8 → 0.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.
- package/README.md +19 -0
- package/package.json +4 -2
- package/pkg/ExtendedEventsViewer.d.ts +16 -0
- package/pkg/ExtendedEventsViewer.js +219 -0
- package/pkg/build-report.json +80 -14
- package/pkg/defaults.js +49 -0
- package/pkg/index.d.ts +2 -1
- package/pkg/index.js +1 -0
- package/pkg/models/ActivityClient.d.ts +3 -0
- package/pkg/models/DefinitionPayload.d.ts +4 -0
- package/pkg/models/ExtendedEventsBatch.d.ts +13 -0
- package/pkg/models/ExtendedEventsFormat.d.ts +3 -0
- package/pkg/models/ImportedEventDeadlock.d.ts +8 -0
- package/pkg/models/ImportedEventLocation.d.ts +15 -0
- package/pkg/models/MssqlExtendedEventKind.d.ts +3 -0
- package/pkg/models/MssqlExtendedEventObservation.d.ts +22 -0
- package/pkg/models/NativeLogIssue.d.ts +8 -0
- package/pkg/models/NativeLogLimits.d.ts +3 -0
- package/pkg/models/NativeLogProblem.d.ts +3 -0
- package/pkg/models/PayloadUnavailable.d.ts +3 -0
- package/pkg/styles.css +272 -0
- package/pkg/types.d.ts +12 -0
package/README.md
CHANGED
|
@@ -122,6 +122,25 @@ const [deadlock] = parseDeadlock(serverDeadlockText);
|
|
|
122
122
|
|
|
123
123
|
---
|
|
124
124
|
|
|
125
|
+
## `ExtendedEventsViewer`
|
|
126
|
+
|
|
127
|
+
Client-side inspector for binary SQL Server Extended Events (`.xel`) captures (`system_health*.xel`, Azure SQL Blob XE targets) and exported Extended Events XML:
|
|
128
|
+
|
|
129
|
+
- **Event type filtering & search**: Filter `xml_deadlock_report`, `error_reported`, and `attention` records by database, session, application, login, host, error code, or redacted SQL.
|
|
130
|
+
- **Embedded deadlock graphs**: Automatically expands any captured `xml_deadlock_report` into `DeadlockViewer` with lock-cycle SVG and SQL fixes.
|
|
131
|
+
- **Honest clock & truncation reporting**: Preserves UTC session clocks vs offset-free timestamps and surfaces truncated trailing blocks or skipped non-failure events clearly.
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
import { parseXel } from "@culpritsql/plans";
|
|
135
|
+
import { ExtendedEventsViewer } from "@culpritsql/plan-viewer";
|
|
136
|
+
|
|
137
|
+
const batch = parseXel(new Uint8Array(await xelFile.arrayBuffer()));
|
|
138
|
+
|
|
139
|
+
<ExtendedEventsViewer batch={batch} title={xelFile.name} />;
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
125
144
|
## Theming & CSS Isolation
|
|
126
145
|
|
|
127
146
|
`@culpritsql/plan-viewer/styles.css` scopes every token, reset, and selector inside `.culprit-pv`. Importing it never alters your application's `html`, `body`, scrollbars, or global `<button>` styles.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@culpritsql/plan-viewer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Interactive React execution plan diagram, structural plan diff,
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Interactive React execution plan diagram, structural plan diff, deadlock cycle graph, and Extended Events (.xel) components for SQL Server, PostgreSQL, MySQL, MariaDB, YugabyteDB, and SQLite.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -46,6 +46,8 @@
|
|
|
46
46
|
"showplan",
|
|
47
47
|
"sqlplan",
|
|
48
48
|
"deadlock",
|
|
49
|
+
"xel",
|
|
50
|
+
"extended-events",
|
|
49
51
|
"plan-viewer",
|
|
50
52
|
"postgres",
|
|
51
53
|
"postgresql",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PlanViewerTheme } from "./PlanViewer.js";
|
|
2
|
+
import type { ExtendedEventsBatch } from "./types.js";
|
|
3
|
+
export type ExtendedEventsFilter = "all" | "deadlock-report" | "error-reported" | "attention";
|
|
4
|
+
export type ExtendedEventsViewerProps = {
|
|
5
|
+
batch: ExtendedEventsBatch;
|
|
6
|
+
title?: string;
|
|
7
|
+
defaultFilter?: ExtendedEventsFilter;
|
|
8
|
+
theme?: PlanViewerTheme;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Interactive SQL Server Extended Events (`.xel` and XML) inspector:
|
|
13
|
+
* filters `xml_deadlock_report`, `error_reported`, and `attention` records, preserves UTC vs offset-free timestamps,
|
|
14
|
+
* surfaces partial/truncated block limits honestly, and embeds `DeadlockViewer` for captured deadlock graphs.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ExtendedEventsViewer({ batch, title, defaultFilter, theme, className, }: ExtendedEventsViewerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertTriangle, Clock, Copy, Flame, Search, Zap } from "lucide-react";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { DeadlockViewer } from "./DeadlockViewer.js";
|
|
5
|
+
import { copyAndTell, count, digits, t, useLanguage } from "./host.js";
|
|
6
|
+
import { Sql } from "./Sql.js";
|
|
7
|
+
function problemReason(problem) {
|
|
8
|
+
switch (problem.kind) {
|
|
9
|
+
case "record-limit":
|
|
10
|
+
return t("ui.extended_events.problem.record_limit");
|
|
11
|
+
case "input-limit":
|
|
12
|
+
return t("ui.extended_events.problem.input_limit");
|
|
13
|
+
case "record-bytes":
|
|
14
|
+
return t("ui.extended_events.problem.record_bytes");
|
|
15
|
+
case "field-bytes":
|
|
16
|
+
return t("ui.extended_events.problem.field_bytes");
|
|
17
|
+
case "malformed-record":
|
|
18
|
+
return t("ui.extended_events.problem.malformed");
|
|
19
|
+
default:
|
|
20
|
+
return t("ui.extended_events.problem.other");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function formatHexOffset(location) {
|
|
24
|
+
if (!location)
|
|
25
|
+
return null;
|
|
26
|
+
const evHex = `0x${location.event_offset.toString(16)}`;
|
|
27
|
+
if (location.buffer_offset !== null) {
|
|
28
|
+
return `0x${location.buffer_offset.toString(16)} / ${evHex}`;
|
|
29
|
+
}
|
|
30
|
+
return evHex;
|
|
31
|
+
}
|
|
32
|
+
function eventTimeLabel(row) {
|
|
33
|
+
if (row.timestamp_utc) {
|
|
34
|
+
return {
|
|
35
|
+
text: t("ui.extended_events.time.utc", { time: row.timestamp_utc }),
|
|
36
|
+
title: row.timestamp_utc,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (row.timestamp) {
|
|
40
|
+
return {
|
|
41
|
+
text: t("ui.extended_events.time.local", { time: row.timestamp }),
|
|
42
|
+
title: row.timestamp,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const unknown = t("ui.extended_events.time.unknown");
|
|
46
|
+
return { text: unknown, title: unknown };
|
|
47
|
+
}
|
|
48
|
+
function matchesQuery(row, needle) {
|
|
49
|
+
if (!needle)
|
|
50
|
+
return true;
|
|
51
|
+
const parts = [
|
|
52
|
+
row.database,
|
|
53
|
+
row.database_id,
|
|
54
|
+
row.session_id,
|
|
55
|
+
row.request_id,
|
|
56
|
+
row.event_sequence,
|
|
57
|
+
row.client?.application,
|
|
58
|
+
row.client?.user,
|
|
59
|
+
row.client?.host,
|
|
60
|
+
row.timestamp_utc,
|
|
61
|
+
row.timestamp,
|
|
62
|
+
row.statement.state === "available" ? row.statement.text : null,
|
|
63
|
+
];
|
|
64
|
+
if (row.kind.event === "error-reported") {
|
|
65
|
+
parts.push(String(row.kind.number), `sev ${row.kind.severity}`);
|
|
66
|
+
}
|
|
67
|
+
return parts.some((p) => p?.toLowerCase().includes(needle));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Interactive SQL Server Extended Events (`.xel` and XML) inspector:
|
|
71
|
+
* filters `xml_deadlock_report`, `error_reported`, and `attention` records, preserves UTC vs offset-free timestamps,
|
|
72
|
+
* surfaces partial/truncated block limits honestly, and embeds `DeadlockViewer` for captured deadlock graphs.
|
|
73
|
+
*/
|
|
74
|
+
export function ExtendedEventsViewer({ batch, title, defaultFilter = "all", theme, className, }) {
|
|
75
|
+
useLanguage();
|
|
76
|
+
const [filter, setFilter] = useState(defaultFilter);
|
|
77
|
+
const [query, setQuery] = useState("");
|
|
78
|
+
const locationsByPos = useMemo(() => {
|
|
79
|
+
const map = new Map();
|
|
80
|
+
for (const loc of batch.locations)
|
|
81
|
+
map.set(loc.position, loc);
|
|
82
|
+
return map;
|
|
83
|
+
}, [batch.locations]);
|
|
84
|
+
const deadlocksByPos = useMemo(() => {
|
|
85
|
+
const map = new Map();
|
|
86
|
+
for (const item of batch.deadlocks) {
|
|
87
|
+
const list = map.get(item.position);
|
|
88
|
+
if (list)
|
|
89
|
+
list.push(item);
|
|
90
|
+
else
|
|
91
|
+
map.set(item.position, [item]);
|
|
92
|
+
}
|
|
93
|
+
return map;
|
|
94
|
+
}, [batch.deadlocks]);
|
|
95
|
+
const counts = useMemo(() => {
|
|
96
|
+
let deadlocks = 0;
|
|
97
|
+
let errors = 0;
|
|
98
|
+
let attentions = 0;
|
|
99
|
+
for (const row of batch.records) {
|
|
100
|
+
if (row.kind.event === "deadlock-report")
|
|
101
|
+
deadlocks++;
|
|
102
|
+
else if (row.kind.event === "error-reported")
|
|
103
|
+
errors++;
|
|
104
|
+
else
|
|
105
|
+
attentions++;
|
|
106
|
+
}
|
|
107
|
+
return { all: batch.records.length, deadlocks, errors, attentions };
|
|
108
|
+
}, [batch.records]);
|
|
109
|
+
const issueBreakdown = useMemo(() => {
|
|
110
|
+
let skippedUnsupported = 0;
|
|
111
|
+
let decodeIssues = 0;
|
|
112
|
+
let firstProblem = null;
|
|
113
|
+
for (const issue of batch.issues) {
|
|
114
|
+
if (issue.problem.kind === "unsupported-event") {
|
|
115
|
+
skippedUnsupported++;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
decodeIssues++;
|
|
119
|
+
if (!firstProblem)
|
|
120
|
+
firstProblem = issue.problem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return { skippedUnsupported, decodeIssues, firstProblem };
|
|
124
|
+
}, [batch.issues]);
|
|
125
|
+
const normalizedQuery = query.trim().toLowerCase();
|
|
126
|
+
const filteredRecords = useMemo(() => batch.records.filter((row) => (filter === "all" || row.kind.event === filter) && matchesQuery(row, normalizedQuery)), [batch.records, filter, normalizedQuery]);
|
|
127
|
+
return (_jsxs("section", { className: `culprit-pv xe-viewer ${className ?? ""}`, "data-theme": theme && theme !== "system" ? theme : undefined, children: [_jsxs("header", { className: "xe-head", children: [_jsxs("div", { className: "xe-head-top", children: [_jsxs("div", { className: "xe-title-group", children: [_jsx("span", { className: "xe-format-badge", children: batch.format === "xel" ? t("ui.extended_events.badge.xel") : t("ui.extended_events.badge.xml") }), _jsx("h2", { className: "xe-title", children: title || t("ui.extended_events.title.default") })] }), _jsxs("div", { className: "xe-stats", children: [_jsx("span", { children: t("ui.extended_events.summary.events", {
|
|
128
|
+
n: batch.records.length,
|
|
129
|
+
count: count(batch.records.length),
|
|
130
|
+
}) }), _jsx("span", { "aria-hidden": "true", children: "\u00B7" }), _jsx("span", { children: t("ui.extended_events.summary.examined", {
|
|
131
|
+
n: batch.records_examined,
|
|
132
|
+
count: count(batch.records_examined),
|
|
133
|
+
}) }), _jsx("span", { "aria-hidden": "true", children: "\u00B7" }), _jsx("span", { children: t("ui.extended_events.summary.deadlocks", {
|
|
134
|
+
n: batch.deadlocks.length,
|
|
135
|
+
count: count(batch.deadlocks.length),
|
|
136
|
+
}) })] })] }), _jsx("p", { className: "xe-scope muted", children: t("ui.extended_events.scope_note") }), (batch.stopped !== null || issueBreakdown.decodeIssues > 0 || issueBreakdown.skippedUnsupported > 0) && (_jsxs("div", { className: "xe-banners", role: "status", children: [batch.stopped !== null && (_jsxs("div", { className: "xe-banner warn", children: [_jsx(AlertTriangle, { size: 14 }), _jsx("span", { children: t("ui.extended_events.banner.stopped", { reason: problemReason(batch.stopped) }) })] })), issueBreakdown.decodeIssues > 0 && issueBreakdown.firstProblem && (_jsxs("div", { className: "xe-banner warn", children: [_jsx(AlertTriangle, { size: 14 }), _jsx("span", { children: t("ui.extended_events.banner.issues", {
|
|
137
|
+
n: issueBreakdown.decodeIssues,
|
|
138
|
+
count: count(issueBreakdown.decodeIssues),
|
|
139
|
+
reason: problemReason(issueBreakdown.firstProblem),
|
|
140
|
+
}) })] })), issueBreakdown.skippedUnsupported > 0 && (_jsx("div", { className: "xe-banner info", children: _jsx("span", { children: t("ui.extended_events.banner.skipped_other", {
|
|
141
|
+
n: issueBreakdown.skippedUnsupported,
|
|
142
|
+
count: count(issueBreakdown.skippedUnsupported),
|
|
143
|
+
}) }) }))] })), _jsxs("div", { className: "xe-toolbar", children: [_jsxs("div", { className: "seg xe-filters", role: "tablist", children: [_jsxs("button", { type: "button", role: "tab", "aria-selected": filter === "all", className: filter === "all" ? "on" : "", onClick: () => setFilter("all"), children: [t("ui.extended_events.filter.all"), " ", _jsx("span", { className: "xe-pill-count", children: count(counts.all) })] }), _jsxs("button", { type: "button", role: "tab", "aria-selected": filter === "deadlock-report", className: filter === "deadlock-report" ? "on" : "", onClick: () => setFilter("deadlock-report"), children: [t("ui.extended_events.filter.deadlocks"), " ", _jsx("span", { className: "xe-pill-count", children: count(counts.deadlocks) })] }), _jsxs("button", { type: "button", role: "tab", "aria-selected": filter === "error-reported", className: filter === "error-reported" ? "on" : "", onClick: () => setFilter("error-reported"), children: [t("ui.extended_events.filter.errors"), " ", _jsx("span", { className: "xe-pill-count", children: count(counts.errors) })] }), _jsxs("button", { type: "button", role: "tab", "aria-selected": filter === "attention", className: filter === "attention" ? "on" : "", onClick: () => setFilter("attention"), children: [t("ui.extended_events.filter.attentions"), " ", _jsx("span", { className: "xe-pill-count", children: count(counts.attentions) })] })] }), _jsxs("label", { className: "plan-search xe-search", children: [_jsx(Search, { size: 13 }), _jsx("input", { type: "search", value: query, onChange: (e) => setQuery(e.target.value), placeholder: t("ui.extended_events.search.placeholder"), "aria-label": t("ui.extended_events.search.label") })] })] })] }), filteredRecords.length === 0 ? (_jsx("div", { className: "xe-empty muted", children: batch.records.length === 0
|
|
144
|
+
? t("ui.extended_events.empty.artifact")
|
|
145
|
+
: t("ui.extended_events.empty.filtered") })) : (_jsx("div", { className: "xe-list", children: filteredRecords.map((row) => (_jsx(ExtendedEventCard, { row: row, location: locationsByPos.get(row.position), deadlocks: deadlocksByPos.get(row.position) ?? [], theme: theme }, row.position))) }))] }));
|
|
146
|
+
}
|
|
147
|
+
function ExtendedEventCard({ row, location, deadlocks, theme, }) {
|
|
148
|
+
const time = eventTimeLabel(row);
|
|
149
|
+
const offset = formatHexOffset(location);
|
|
150
|
+
let badgeClass = "attention";
|
|
151
|
+
let badgeText = t("ui.extended_events.kind.attention");
|
|
152
|
+
let cardTitle = t("ui.extended_events.card.attention_title");
|
|
153
|
+
let icon = _jsx(Clock, { size: 13 });
|
|
154
|
+
if (row.kind.event === "deadlock-report") {
|
|
155
|
+
badgeClass = "deadlock";
|
|
156
|
+
badgeText = t("ui.extended_events.kind.deadlock");
|
|
157
|
+
cardTitle = t("ui.extended_events.card.deadlock_title", {
|
|
158
|
+
n: row.kind.graphs,
|
|
159
|
+
count: count(row.kind.graphs),
|
|
160
|
+
});
|
|
161
|
+
icon = _jsx(Flame, { size: 13 });
|
|
162
|
+
}
|
|
163
|
+
else if (row.kind.event === "error-reported") {
|
|
164
|
+
badgeClass = row.kind.severity >= 16 ? "error-high" : "error";
|
|
165
|
+
badgeText = t("ui.extended_events.kind.error", {
|
|
166
|
+
number: String(row.kind.number),
|
|
167
|
+
severity: digits(String(row.kind.severity)),
|
|
168
|
+
});
|
|
169
|
+
cardTitle = t("ui.extended_events.card.error_title", {
|
|
170
|
+
number: String(row.kind.number),
|
|
171
|
+
severity: digits(String(row.kind.severity)),
|
|
172
|
+
state: digits(String(row.kind.state)),
|
|
173
|
+
});
|
|
174
|
+
icon = _jsx(Zap, { size: 13 });
|
|
175
|
+
}
|
|
176
|
+
const fields = [];
|
|
177
|
+
if (row.database ?? row.database_id) {
|
|
178
|
+
fields.push({ label: t("ui.extended_events.field.database"), value: (row.database ?? row.database_id) });
|
|
179
|
+
}
|
|
180
|
+
if (row.session_id) {
|
|
181
|
+
fields.push({ label: t("ui.extended_events.field.session"), value: row.session_id });
|
|
182
|
+
}
|
|
183
|
+
if (row.request_id) {
|
|
184
|
+
fields.push({ label: t("ui.extended_events.field.request"), value: row.request_id });
|
|
185
|
+
}
|
|
186
|
+
if (row.event_sequence) {
|
|
187
|
+
fields.push({ label: t("ui.extended_events.field.sequence"), value: row.event_sequence });
|
|
188
|
+
}
|
|
189
|
+
if (row.client?.application) {
|
|
190
|
+
fields.push({ label: t("ui.extended_events.field.application"), value: row.client.application });
|
|
191
|
+
}
|
|
192
|
+
if (row.client?.user) {
|
|
193
|
+
fields.push({ label: t("ui.extended_events.field.user"), value: row.client.user });
|
|
194
|
+
}
|
|
195
|
+
if (row.client?.host) {
|
|
196
|
+
fields.push({ label: t("ui.extended_events.field.host"), value: row.client.host });
|
|
197
|
+
}
|
|
198
|
+
if (row.kind.event === "attention" && row.kind.native_duration) {
|
|
199
|
+
fields.push({ label: t("ui.extended_events.field.duration"), value: digits(row.kind.native_duration) });
|
|
200
|
+
}
|
|
201
|
+
if (row.kind.event === "error-reported") {
|
|
202
|
+
if (row.kind.intercepted !== null) {
|
|
203
|
+
fields.push({
|
|
204
|
+
label: t("ui.extended_events.field.intercepted"),
|
|
205
|
+
value: row.kind.intercepted ? t("ui.extended_events.value.yes") : t("ui.extended_events.value.no"),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
if (row.kind.user_defined !== null) {
|
|
209
|
+
fields.push({
|
|
210
|
+
label: t("ui.extended_events.field.user_defined"),
|
|
211
|
+
value: row.kind.user_defined ? t("ui.extended_events.value.yes") : t("ui.extended_events.value.no"),
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (offset) {
|
|
216
|
+
fields.push({ label: t("ui.extended_events.field.offset"), value: offset });
|
|
217
|
+
}
|
|
218
|
+
return (_jsxs("article", { className: "xe-card", "data-event-kind": row.kind.event, "data-position": row.position, children: [_jsxs("div", { className: "xe-card-head", children: [_jsxs("span", { className: `xe-kind-pill ${badgeClass}`, children: [icon, _jsx("span", { children: badgeText })] }), _jsxs("span", { className: "xe-time muted", title: time.title, children: ["#", row.position, " \u00B7 ", time.text] })] }), _jsx("h3", { className: "xe-card-title", children: cardTitle }), row.kind.event === "attention" && (_jsx("p", { className: "xe-card-note muted", children: t("ui.extended_events.card.attention_note") })), fields.length > 0 && (_jsx("dl", { className: "xe-meta-grid", children: fields.map((f) => (_jsxs("div", { className: "xe-meta-item", children: [_jsx("dt", { children: f.label }), _jsx("dd", { children: f.value })] }, f.label))) })), row.statement.state === "available" && (_jsxs("div", { className: "xe-sql-block", children: [_jsxs("div", { className: "xe-sql-head", children: [_jsx("span", { className: "muted", children: t("ui.extended_events.statement.label") }), _jsxs("button", { type: "button", className: "btn ghost small", onClick: () => copyAndTell(row.statement.state === "available" ? row.statement.text : "", t("ui.common.copied")), children: [_jsx(Copy, { size: 12 }), " ", t("ui.common.copy")] })] }), _jsx(Sql, { text: row.statement.text, className: "xe-sql" })] })), deadlocks.map(({ graph }, idx) => (_jsxs("details", { className: "xe-deadlock-details", open: true, children: [_jsx("summary", { children: t("ui.extended_events.deadlock.toggle") }), _jsx("div", { className: "xe-deadlock-body", children: _jsx(DeadlockViewer, { deadlock: graph, theme: theme }) })] }, graph.id || idx)))] }));
|
|
219
|
+
}
|
package/pkg/build-report.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"embedded_catalog": {
|
|
9
9
|
"language": "en",
|
|
10
|
-
"message_count":
|
|
11
|
-
"source_en_sha256": "
|
|
10
|
+
"message_count": 481,
|
|
11
|
+
"source_en_sha256": "8cbf6743599aa9fd05095128e1d11c4558482ec397ae3074bb94282bc3c12aad",
|
|
12
12
|
"engines_sha256": "248786d554da4879147ab3aabb6ca4cbeb33f113cc1554afd5a43a5371aa7844"
|
|
13
13
|
},
|
|
14
14
|
"models": [
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"source_sha256": "7e05fe6e009716f03e63faec6f030e7855225ad924e3250043424790c3e1c59a",
|
|
18
18
|
"package_sha256": "7e05fe6e009716f03e63faec6f030e7855225ad924e3250043424790c3e1c59a"
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "ActivityClient",
|
|
22
|
+
"source_sha256": "10f39fa8fbca174637dfb60ae9a2053803ea8f67399eb783d275875a9eb3d139",
|
|
23
|
+
"package_sha256": "10f39fa8fbca174637dfb60ae9a2053803ea8f67399eb783d275875a9eb3d139"
|
|
24
|
+
},
|
|
20
25
|
{
|
|
21
26
|
"name": "ActualSummary",
|
|
22
27
|
"source_sha256": "f2835c5d703e3187b50a066ef0391fe266ce5f79e1f3a95058f41ba687dc890d",
|
|
@@ -127,6 +132,11 @@
|
|
|
127
132
|
"source_sha256": "7e860c0796f78806ed040aca34f4359b5815433d6643fe6aecc31a7f5f62f4a8",
|
|
128
133
|
"package_sha256": "33b2f5da2597a7c8ac49e014a5c59edc04d8d4c21ff6e8aeb245110e107327c6"
|
|
129
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"name": "DefinitionPayload",
|
|
137
|
+
"source_sha256": "0bfa9c1fdcfd3fc29f7a2c54918e30273c2482f6bda3afea4c28718bda4d11fc",
|
|
138
|
+
"package_sha256": "315f41ffd457f6839a5223354c226c2a8fb909bfe1b6a87218d932ada91be4ac"
|
|
139
|
+
},
|
|
130
140
|
{
|
|
131
141
|
"name": "DistributionPopulation",
|
|
132
142
|
"source_sha256": "48a65e4e402c3957cb007776ed17b112255c04b6f662ab8b3a5d60379173bb26",
|
|
@@ -162,11 +172,31 @@
|
|
|
162
172
|
"source_sha256": "b8fc32740b11fa9aeb7b28bd264aba981ad50a31af3c6ca1ead6c4001c0cd8c0",
|
|
163
173
|
"package_sha256": "b8fc32740b11fa9aeb7b28bd264aba981ad50a31af3c6ca1ead6c4001c0cd8c0"
|
|
164
174
|
},
|
|
175
|
+
{
|
|
176
|
+
"name": "ExtendedEventsBatch",
|
|
177
|
+
"source_sha256": "407e340e1ae15ac9284c6e7d92c6a84530d76290e72fabd25de5662a304ce647",
|
|
178
|
+
"package_sha256": "c52af3bea9ebbd6fe8881f69005e9bfb2f6246bb377862f257611c9c6c47fc9c"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "ExtendedEventsFormat",
|
|
182
|
+
"source_sha256": "4d2c0f3c8044661ffaae384ba7fae512286de9915c0b44cc2cbe0ae3d388cbfa",
|
|
183
|
+
"package_sha256": "4d2c0f3c8044661ffaae384ba7fae512286de9915c0b44cc2cbe0ae3d388cbfa"
|
|
184
|
+
},
|
|
165
185
|
{
|
|
166
186
|
"name": "Guess",
|
|
167
187
|
"source_sha256": "583209cb03473ded995c96081209c7a82adb51108949a6b83d654def8eabeb87",
|
|
168
188
|
"package_sha256": "583209cb03473ded995c96081209c7a82adb51108949a6b83d654def8eabeb87"
|
|
169
189
|
},
|
|
190
|
+
{
|
|
191
|
+
"name": "ImportedEventDeadlock",
|
|
192
|
+
"source_sha256": "25285508b913f1b3369a7adff2115bd6d6da5348e373ed7d98d2ea97bfa9a1a7",
|
|
193
|
+
"package_sha256": "4b3141c6ad60451cefee1050d7790cdcc2600e1f3c89690b9153a7675aba1679"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "ImportedEventLocation",
|
|
197
|
+
"source_sha256": "31bd187e4b7fa52fb75c7a5f2e7a27e03966c30efbf8efe5f74f38d9bf917cc9",
|
|
198
|
+
"package_sha256": "31bd187e4b7fa52fb75c7a5f2e7a27e03966c30efbf8efe5f74f38d9bf917cc9"
|
|
199
|
+
},
|
|
170
200
|
{
|
|
171
201
|
"name": "InsightArea",
|
|
172
202
|
"source_sha256": "5a66f669936f61980221c4721020a6fc2a1c7fe0dbca4b5867a3a26b9ff56934",
|
|
@@ -242,6 +272,16 @@
|
|
|
242
272
|
"source_sha256": "7b198ef60b7ca6a64bdd7bac89a39348f364a953c041e5381fde67f5e70de6dc",
|
|
243
273
|
"package_sha256": "7b198ef60b7ca6a64bdd7bac89a39348f364a953c041e5381fde67f5e70de6dc"
|
|
244
274
|
},
|
|
275
|
+
{
|
|
276
|
+
"name": "MssqlExtendedEventKind",
|
|
277
|
+
"source_sha256": "50f121d1a6b8352bb5864ee1d798d92b6b03797d7a8282c4f65a64c79c82ff39",
|
|
278
|
+
"package_sha256": "50f121d1a6b8352bb5864ee1d798d92b6b03797d7a8282c4f65a64c79c82ff39"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "MssqlExtendedEventObservation",
|
|
282
|
+
"source_sha256": "46eca68f0f93a965176fb2024e53e06a2c0f5d8a745d108c3fd74b09804c0723",
|
|
283
|
+
"package_sha256": "1c146bf5fe1665c133d52922e4525ecd5a856c221ea4a6424b132a2abb9a4581"
|
|
284
|
+
},
|
|
245
285
|
{
|
|
246
286
|
"name": "MssqlIndexParentKind",
|
|
247
287
|
"source_sha256": "74ff97cd4c3e002904541c2536d1e2e1a7ac13ec4afbaf9734ad850ccd70f2f0",
|
|
@@ -257,6 +297,21 @@
|
|
|
257
297
|
"source_sha256": "899a25298c7ab4f6bb23a78bdfe63f46e5d6a494481d22e4d1207b8a654c854b",
|
|
258
298
|
"package_sha256": "899a25298c7ab4f6bb23a78bdfe63f46e5d6a494481d22e4d1207b8a654c854b"
|
|
259
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"name": "NativeLogIssue",
|
|
302
|
+
"source_sha256": "a452afc6fda04a6f811a0bac19418689f2c717484de765dbd1e9381fb73346d0",
|
|
303
|
+
"package_sha256": "f661e310ecef619afcd988943ed7870109d389081c01adb8295b5a36cf1dcea5"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "NativeLogLimits",
|
|
307
|
+
"source_sha256": "73bbef9d42ea49396a5ffe20169e60f50416faad002579486dbd2df9bed8255e",
|
|
308
|
+
"package_sha256": "73bbef9d42ea49396a5ffe20169e60f50416faad002579486dbd2df9bed8255e"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "NativeLogProblem",
|
|
312
|
+
"source_sha256": "3c87ad3fdbcfd0cfd150daf9dad3d51d66d8da68dda3594fac5e521f74f922ce",
|
|
313
|
+
"package_sha256": "3c87ad3fdbcfd0cfd150daf9dad3d51d66d8da68dda3594fac5e521f74f922ce"
|
|
314
|
+
},
|
|
260
315
|
{
|
|
261
316
|
"name": "NativePlanIdentity",
|
|
262
317
|
"source_sha256": "32ea705859b80958e4599abaf394754bf39a542242ccc72e40007eb423ee8616",
|
|
@@ -307,6 +362,11 @@
|
|
|
307
362
|
"source_sha256": "0993a52e79c3af30bccd9e36a7b2f02f76524d5cefe6217c1c2b01918b220892",
|
|
308
363
|
"package_sha256": "0993a52e79c3af30bccd9e36a7b2f02f76524d5cefe6217c1c2b01918b220892"
|
|
309
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"name": "PayloadUnavailable",
|
|
367
|
+
"source_sha256": "12d08c73b12e58d07784175bd981384f86158d6b2daec84fde50e8ff4d0ce596",
|
|
368
|
+
"package_sha256": "12d08c73b12e58d07784175bd981384f86158d6b2daec84fde50e8ff4d0ce596"
|
|
369
|
+
},
|
|
310
370
|
{
|
|
311
371
|
"name": "Plan",
|
|
312
372
|
"source_sha256": "cf86312e76ada6e1950a93b90f4737be8c6a90b7b7d40f38c19a2056c4fa4e6e",
|
|
@@ -782,6 +842,12 @@
|
|
|
782
842
|
"brotli_bytes": 746,
|
|
783
843
|
"sha256": "1e751f56abf9f954679b00e64cd873a4a4f0e0a6b06609214446b29f7ad7ad7f"
|
|
784
844
|
},
|
|
845
|
+
"ExtendedEventsViewer.js": {
|
|
846
|
+
"bytes": 14758,
|
|
847
|
+
"gzip_bytes": 3320,
|
|
848
|
+
"brotli_bytes": 2927,
|
|
849
|
+
"sha256": "42314fe13fb9dae684ad7e8f7c9c01d0acf517c78f07d23826baaa3c0ae99a04"
|
|
850
|
+
},
|
|
785
851
|
"NodeDetails.js": {
|
|
786
852
|
"bytes": 17978,
|
|
787
853
|
"gzip_bytes": 4197,
|
|
@@ -879,10 +945,10 @@
|
|
|
879
945
|
"sha256": "7bc35279db095a55830a0a0f917917442f024fe451907a8fce64f438584d464d"
|
|
880
946
|
},
|
|
881
947
|
"defaults.js": {
|
|
882
|
-
"bytes":
|
|
883
|
-
"gzip_bytes":
|
|
884
|
-
"brotli_bytes":
|
|
885
|
-
"sha256": "
|
|
948
|
+
"bytes": 42275,
|
|
949
|
+
"gzip_bytes": 9547,
|
|
950
|
+
"brotli_bytes": 8169,
|
|
951
|
+
"sha256": "f55c6e48b9a3e407dd89bc582274706c180da58bcaf758d07f29d0980bbc9740"
|
|
886
952
|
},
|
|
887
953
|
"host.js": {
|
|
888
954
|
"bytes": 24174,
|
|
@@ -891,16 +957,16 @@
|
|
|
891
957
|
"sha256": "a8389e7ba5d505af7e0dde74d3836132df4cb19384b2b1ea388e7facd75f6141"
|
|
892
958
|
},
|
|
893
959
|
"index.js": {
|
|
894
|
-
"bytes":
|
|
895
|
-
"gzip_bytes":
|
|
896
|
-
"brotli_bytes":
|
|
897
|
-
"sha256": "
|
|
960
|
+
"bytes": 1292,
|
|
961
|
+
"gzip_bytes": 431,
|
|
962
|
+
"brotli_bytes": 360,
|
|
963
|
+
"sha256": "0bd30a63c9ac0b8c730dee5a87eb2c523fcf6aed9111c9c70fff85f6c9528fad"
|
|
898
964
|
},
|
|
899
965
|
"styles.css": {
|
|
900
|
-
"bytes":
|
|
901
|
-
"gzip_bytes":
|
|
902
|
-
"brotli_bytes":
|
|
903
|
-
"sha256": "
|
|
966
|
+
"bytes": 74315,
|
|
967
|
+
"gzip_bytes": 11714,
|
|
968
|
+
"brotli_bytes": 10141,
|
|
969
|
+
"sha256": "103ca8f13ecb70b977eb0f72b27cbad4360fc16199010e3650a25254181f1336"
|
|
904
970
|
},
|
|
905
971
|
"types.js": {
|
|
906
972
|
"bytes": 11,
|
package/pkg/defaults.js
CHANGED
|
@@ -105,6 +105,55 @@ export const DEFAULT_MESSAGES = {
|
|
|
105
105
|
"ui.docdb_work.write_ms": "Storage write time",
|
|
106
106
|
"ui.docdb_work.write_operations": "Write operations",
|
|
107
107
|
"ui.docdb_work.write_requests": "Write RPCs",
|
|
108
|
+
"ui.extended_events.badge.xel": "Extended Events (.xel)",
|
|
109
|
+
"ui.extended_events.badge.xml": "Extended Events (XML)",
|
|
110
|
+
"ui.extended_events.banner.issues": "{n, plural, one {{count} record could not be decoded cleanly ({reason}).} other {{count} records could not be decoded cleanly ({reason}).}}",
|
|
111
|
+
"ui.extended_events.banner.skipped_other": "{n, plural, one {{count} non-failure session event skipped.} other {{count} non-failure session events skipped.}}",
|
|
112
|
+
"ui.extended_events.banner.stopped": "Decoding stopped early ({reason}). Earlier verified records are shown below; this artifact does not prove complete history.",
|
|
113
|
+
"ui.extended_events.card.attention_note": "An attention records a client cancel or timeout signal; the event alone does not distinguish them or prove rollback completion.",
|
|
114
|
+
"ui.extended_events.card.attention_title": "Client attention (cancellation or timeout signal)",
|
|
115
|
+
"ui.extended_events.card.deadlock_title": "{n, plural, one {Native deadlock report ({count} graph)} other {Native deadlock report ({count} graphs)}}",
|
|
116
|
+
"ui.extended_events.card.error_title": "SQL Server error {number} (severity {severity}, state {state})",
|
|
117
|
+
"ui.extended_events.deadlock.toggle": "Deadlock cycle & remediation",
|
|
118
|
+
"ui.extended_events.empty.artifact": "No attention, error_reported, or xml_deadlock_report events were found in this artifact.",
|
|
119
|
+
"ui.extended_events.empty.filtered": "No events match the current filter.",
|
|
120
|
+
"ui.extended_events.field.application": "Application",
|
|
121
|
+
"ui.extended_events.field.database": "Database",
|
|
122
|
+
"ui.extended_events.field.duration": "Native duration",
|
|
123
|
+
"ui.extended_events.field.host": "Host",
|
|
124
|
+
"ui.extended_events.field.intercepted": "Intercepted",
|
|
125
|
+
"ui.extended_events.field.offset": "Byte offset",
|
|
126
|
+
"ui.extended_events.field.request": "Request",
|
|
127
|
+
"ui.extended_events.field.sequence": "Sequence",
|
|
128
|
+
"ui.extended_events.field.session": "Session",
|
|
129
|
+
"ui.extended_events.field.user": "Login",
|
|
130
|
+
"ui.extended_events.field.user_defined": "User-defined",
|
|
131
|
+
"ui.extended_events.filter.all": "All",
|
|
132
|
+
"ui.extended_events.filter.attentions": "Attentions",
|
|
133
|
+
"ui.extended_events.filter.deadlocks": "Deadlocks",
|
|
134
|
+
"ui.extended_events.filter.errors": "Errors",
|
|
135
|
+
"ui.extended_events.kind.attention": "Client attention",
|
|
136
|
+
"ui.extended_events.kind.deadlock": "Deadlock report",
|
|
137
|
+
"ui.extended_events.kind.error": "Error {number} · Severity {severity}",
|
|
138
|
+
"ui.extended_events.problem.field_bytes": "field exceeded byte limit",
|
|
139
|
+
"ui.extended_events.problem.input_limit": "byte limit reached",
|
|
140
|
+
"ui.extended_events.problem.malformed": "truncated or malformed trailing block",
|
|
141
|
+
"ui.extended_events.problem.other": "format limitation",
|
|
142
|
+
"ui.extended_events.problem.record_bytes": "record exceeded byte limit",
|
|
143
|
+
"ui.extended_events.problem.record_limit": "record limit reached",
|
|
144
|
+
"ui.extended_events.scope_note": "Captured Extended Events metadata, client labels, and SQL text describe this artifact only. They do not establish database ownership, complete server history, or query causality.",
|
|
145
|
+
"ui.extended_events.search.label": "Filter Extended Events",
|
|
146
|
+
"ui.extended_events.search.placeholder": "Filter by database, session, app, error, or SQL…",
|
|
147
|
+
"ui.extended_events.statement.label": "Captured event SQL (context only, literals redacted)",
|
|
148
|
+
"ui.extended_events.summary.deadlocks": "{n, plural, =0 {0 deadlock graphs} one {{count} deadlock graph} other {{count} deadlock graphs}}",
|
|
149
|
+
"ui.extended_events.summary.events": "{n, plural, =0 {No diagnostic events} one {{count} diagnostic event} other {{count} diagnostic events}}",
|
|
150
|
+
"ui.extended_events.summary.examined": "{n, plural, one {{count} record examined} other {{count} records examined}}",
|
|
151
|
+
"ui.extended_events.time.local": "Local {time} (no UTC offset)",
|
|
152
|
+
"ui.extended_events.time.unknown": "Time not recorded",
|
|
153
|
+
"ui.extended_events.time.utc": "UTC {time}",
|
|
154
|
+
"ui.extended_events.title.default": "SQL Server Extended Events",
|
|
155
|
+
"ui.extended_events.value.no": "No",
|
|
156
|
+
"ui.extended_events.value.yes": "Yes",
|
|
108
157
|
"ui.format.count.billions": "{value}B",
|
|
109
158
|
"ui.format.count.millions": "{value}M",
|
|
110
159
|
"ui.format.count.thousands": "{value}K",
|
package/pkg/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ActualSummary } from "./ActualSummary.js";
|
|
|
2
2
|
export { DeadlockGraph } from "./DeadlockGraph.js";
|
|
3
3
|
export { DeadlockViewer, deadlockPatternLabel, deadlockWhen, type DeadlockViewerProps } from "./DeadlockViewer.js";
|
|
4
4
|
export { DocdbWork } from "./DocdbWork.js";
|
|
5
|
+
export { ExtendedEventsViewer, type ExtendedEventsFilter, type ExtendedEventsViewerProps, } from "./ExtendedEventsViewer.js";
|
|
5
6
|
export { bindPlanViewerClipboard, bindPlanViewerI18n, type MessageArgs, type PlanViewerClipboardHandler, type PlanViewerI18nAdapter, } from "./host.js";
|
|
6
7
|
export { NodeDetails } from "./NodeDetails.js";
|
|
7
8
|
export { OpIcon, opIcon } from "./OpIcon.js";
|
|
@@ -19,4 +20,4 @@ export { NodeProps, PlanTree, PlanView, planKindLabel, predicateLabel, shortPred
|
|
|
19
20
|
export { PlanViewer, type PlanViewerProps, type PlanViewerTheme } from "./PlanViewer.js";
|
|
20
21
|
export { Prose } from "./Prose.js";
|
|
21
22
|
export { Sql } from "./Sql.js";
|
|
22
|
-
export type { ChangeKind, Deadlock, DeadlockFix, DeadlockPattern, DeadlockProcess, DeadlockResource, DocdbMetrics, Engine, InsightArea, NodeRuntime, Plan, PlanChange, PlanDiff, PlanInsight, PlanKind, PlanNode, PlanNodeFacts, PlanOperatorView, PlanViewModel, QueryStat, Scenario, ScenarioKind, Severity, } from "./types.js";
|
|
23
|
+
export type { ActivityClient, ChangeKind, Deadlock, DeadlockFix, DeadlockPattern, DeadlockProcess, DeadlockResource, DefinitionPayload, DocdbMetrics, Engine, ExtendedEventsBatch, ExtendedEventsFormat, ImportedEventDeadlock, ImportedEventLocation, InsightArea, MssqlExtendedEventKind, MssqlExtendedEventObservation, NativeLogIssue, NativeLogLimits, NativeLogProblem, NodeRuntime, PayloadUnavailable, Plan, PlanChange, PlanDiff, PlanInsight, PlanKind, PlanNode, PlanNodeFacts, PlanOperatorView, PlanViewModel, QueryStat, Scenario, ScenarioKind, Severity, } from "./types.js";
|
package/pkg/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { ActualSummary } from "./ActualSummary.js";
|
|
|
2
2
|
export { DeadlockGraph } from "./DeadlockGraph.js";
|
|
3
3
|
export { DeadlockViewer, deadlockPatternLabel, deadlockWhen } from "./DeadlockViewer.js";
|
|
4
4
|
export { DocdbWork } from "./DocdbWork.js";
|
|
5
|
+
export { ExtendedEventsViewer, } from "./ExtendedEventsViewer.js";
|
|
5
6
|
export { bindPlanViewerClipboard, bindPlanViewerI18n, } from "./host.js";
|
|
6
7
|
export { NodeDetails } from "./NodeDetails.js";
|
|
7
8
|
export { OpIcon, opIcon } from "./OpIcon.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { PayloadUnavailable } from "./PayloadUnavailable.js";
|
|
3
|
+
|
|
4
|
+
export type DefinitionPayload = { "state": "available", text: string, sha256: string, redaction_version: number, } | { "state": "unavailable", reason: PayloadUnavailable, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ExtendedEventsFormat } from "./ExtendedEventsFormat.js";
|
|
3
|
+
import type { ImportedEventDeadlock } from "./ImportedEventDeadlock.js";
|
|
4
|
+
import type { ImportedEventLocation } from "./ImportedEventLocation.js";
|
|
5
|
+
import type { MssqlExtendedEventObservation } from "./MssqlExtendedEventObservation.js";
|
|
6
|
+
import type { NativeLogIssue } from "./NativeLogIssue.js";
|
|
7
|
+
import type { NativeLogProblem } from "./NativeLogProblem.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Bounded SQL Server Extended Events decoded from an explicit binary `.xel` or XML artifact.
|
|
11
|
+
* Captured metadata, client labels, and statements are contextual; they establish neither database ownership nor complete history.
|
|
12
|
+
*/
|
|
13
|
+
export type ExtendedEventsBatch = { format: ExtendedEventsFormat, records: Array<MssqlExtendedEventObservation>, deadlocks: Array<ImportedEventDeadlock>, locations: Array<ImportedEventLocation>, issues: Array<NativeLogIssue>, stopped: NativeLogProblem | null, records_examined: number, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { Deadlock } from "./Deadlock.js";
|
|
3
|
+
|
|
4
|
+
export type ImportedEventDeadlock = {
|
|
5
|
+
/**
|
|
6
|
+
* Position in this artifact only; graph IDs do not prove a distinct native occurrence across imports.
|
|
7
|
+
*/
|
|
8
|
+
position: number, graph: Deadlock, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type ImportedEventLocation = {
|
|
4
|
+
/**
|
|
5
|
+
* Zero-based position in `evidence.observations` within this supplied artifact.
|
|
6
|
+
*/
|
|
7
|
+
position: number,
|
|
8
|
+
/**
|
|
9
|
+
* Byte offset of the enclosing binary XEL event buffer in the supplied artifact (`None` for XML exports).
|
|
10
|
+
*/
|
|
11
|
+
buffer_offset: number | null,
|
|
12
|
+
/**
|
|
13
|
+
* Byte offset of the event record within the supplied artifact.
|
|
14
|
+
*/
|
|
15
|
+
event_offset: number, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type MssqlExtendedEventKind = { "event": "attention", native_duration: string | null, } | { "event": "error-reported", number: number, severity: number, state: number, intercepted: boolean | null, user_defined: boolean | null, } | { "event": "deadlock-report", graphs: number, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ActivityClient } from "./ActivityClient.js";
|
|
3
|
+
import type { DefinitionPayload } from "./DefinitionPayload.js";
|
|
4
|
+
import type { MssqlExtendedEventKind } from "./MssqlExtendedEventKind.js";
|
|
5
|
+
|
|
6
|
+
export type MssqlExtendedEventObservation = { position: number, kind: MssqlExtendedEventKind,
|
|
7
|
+
/**
|
|
8
|
+
* The original timestamp attribute, including an offset-free value or absence.
|
|
9
|
+
*/
|
|
10
|
+
timestamp: string | null, timestamp_utc: string | null,
|
|
11
|
+
/**
|
|
12
|
+
* Native actions are optional. These IDs lack member/process/session generations and cannot authorize a read.
|
|
13
|
+
*/
|
|
14
|
+
event_sequence: string | null, session_id: string | null, request_id: string | null, transaction_id: string | null, database_id: string | null, database: string | null,
|
|
15
|
+
/**
|
|
16
|
+
* Native client labels are contextual, not an application/service owner mapping.
|
|
17
|
+
*/
|
|
18
|
+
client: ActivityClient | null,
|
|
19
|
+
/**
|
|
20
|
+
* The event's captured sql_text action, not the statement that acquired a resource or caused this event.
|
|
21
|
+
*/
|
|
22
|
+
statement: DefinitionPayload, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { NativeLogProblem } from "./NativeLogProblem.js";
|
|
3
|
+
|
|
4
|
+
export type NativeLogIssue = {
|
|
5
|
+
/**
|
|
6
|
+
* Zero-based supplied record position, not an occurrence identity across acquisitions.
|
|
7
|
+
*/
|
|
8
|
+
position: number, problem: NativeLogProblem, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
export type NativeLogProblem = { "kind": "invalid-limits" } | { "kind": "input-limit" } | { "kind": "input-changed" } | { "kind": "record-limit" } | { "kind": "record-bytes" } | { "kind": "field-bytes" } | { "kind": "invalid-utf8" } | { "kind": "invalid-encoding" } | { "kind": "malformed-record" } | { "kind": "duplicate-field" } | { "kind": "invalid-field", "field": string } | { "kind": "csv-column-count" } | { "kind": "native-shape" } | { "kind": "unsupported-version" } | { "kind": "unsupported-event" };
|
package/pkg/styles.css
CHANGED
|
@@ -3459,6 +3459,278 @@
|
|
|
3459
3459
|
background: var(--code-bg);
|
|
3460
3460
|
}
|
|
3461
3461
|
|
|
3462
|
+
/* ───────── extended events (.xel / XML) ───────── */
|
|
3463
|
+
|
|
3464
|
+
.culprit-pv.xe-viewer,
|
|
3465
|
+
.culprit-pv .xe-viewer {
|
|
3466
|
+
display: flex;
|
|
3467
|
+
flex-direction: column;
|
|
3468
|
+
gap: 14px;
|
|
3469
|
+
color: var(--text);
|
|
3470
|
+
font-family: var(--font);
|
|
3471
|
+
font-size: var(--fs-body);
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
.culprit-pv .xe-head {
|
|
3475
|
+
display: flex;
|
|
3476
|
+
flex-direction: column;
|
|
3477
|
+
gap: 10px;
|
|
3478
|
+
padding: 14px 16px;
|
|
3479
|
+
border: 1px solid var(--border);
|
|
3480
|
+
border-radius: var(--radius);
|
|
3481
|
+
background: var(--surface);
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
.culprit-pv .xe-head-top {
|
|
3485
|
+
display: flex;
|
|
3486
|
+
flex-wrap: wrap;
|
|
3487
|
+
align-items: center;
|
|
3488
|
+
justify-content: space-between;
|
|
3489
|
+
gap: 10px;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
.culprit-pv .xe-title-group {
|
|
3493
|
+
display: flex;
|
|
3494
|
+
flex-wrap: wrap;
|
|
3495
|
+
align-items: center;
|
|
3496
|
+
gap: 9px;
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3499
|
+
.culprit-pv .xe-format-badge {
|
|
3500
|
+
display: inline-flex;
|
|
3501
|
+
align-items: center;
|
|
3502
|
+
padding: 2px 8px;
|
|
3503
|
+
border-radius: 999px;
|
|
3504
|
+
border: 1px solid var(--select-border);
|
|
3505
|
+
background: var(--select);
|
|
3506
|
+
font-size: var(--fs-micro);
|
|
3507
|
+
font-weight: 600;
|
|
3508
|
+
color: var(--text);
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
.culprit-pv .xe-title {
|
|
3512
|
+
margin: 0;
|
|
3513
|
+
font-size: var(--fs-heading);
|
|
3514
|
+
font-weight: 650;
|
|
3515
|
+
color: var(--text);
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
.culprit-pv .xe-stats {
|
|
3519
|
+
display: flex;
|
|
3520
|
+
flex-wrap: wrap;
|
|
3521
|
+
align-items: center;
|
|
3522
|
+
gap: 7px;
|
|
3523
|
+
font-size: var(--fs-meta);
|
|
3524
|
+
color: var(--text-2);
|
|
3525
|
+
font-variant-numeric: tabular-nums;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
.culprit-pv .xe-scope {
|
|
3529
|
+
margin: 0;
|
|
3530
|
+
font-size: var(--fs-meta);
|
|
3531
|
+
line-height: 1.45;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
.culprit-pv .xe-banners {
|
|
3535
|
+
display: flex;
|
|
3536
|
+
flex-direction: column;
|
|
3537
|
+
gap: 6px;
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
.culprit-pv .xe-banner {
|
|
3541
|
+
display: flex;
|
|
3542
|
+
align-items: center;
|
|
3543
|
+
gap: 8px;
|
|
3544
|
+
padding: 7px 10px;
|
|
3545
|
+
border-radius: var(--r-sm);
|
|
3546
|
+
font-size: var(--fs-meta);
|
|
3547
|
+
border: 1px solid var(--border);
|
|
3548
|
+
background: var(--sunken);
|
|
3549
|
+
color: var(--text-2);
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
.culprit-pv .xe-banner.warn {
|
|
3553
|
+
border-color: var(--medium);
|
|
3554
|
+
background: var(--medium-bg);
|
|
3555
|
+
color: var(--text);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
.culprit-pv .xe-toolbar {
|
|
3559
|
+
display: flex;
|
|
3560
|
+
flex-wrap: wrap;
|
|
3561
|
+
align-items: center;
|
|
3562
|
+
justify-content: space-between;
|
|
3563
|
+
gap: 10px;
|
|
3564
|
+
margin-top: 2px;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
.culprit-pv .xe-pill-count {
|
|
3568
|
+
margin-inline-start: 4px;
|
|
3569
|
+
opacity: 0.78;
|
|
3570
|
+
font-variant-numeric: tabular-nums;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
.culprit-pv .xe-search {
|
|
3574
|
+
min-width: min(260px, 100%);
|
|
3575
|
+
flex: 1 1 220px;
|
|
3576
|
+
max-width: 360px;
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
.culprit-pv .xe-empty {
|
|
3580
|
+
padding: 28px 18px;
|
|
3581
|
+
text-align: center;
|
|
3582
|
+
border: 1px dashed var(--border-strong);
|
|
3583
|
+
border-radius: var(--radius);
|
|
3584
|
+
background: var(--surface);
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
.culprit-pv .xe-list {
|
|
3588
|
+
display: flex;
|
|
3589
|
+
flex-direction: column;
|
|
3590
|
+
gap: 12px;
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
.culprit-pv .xe-card {
|
|
3594
|
+
display: flex;
|
|
3595
|
+
flex-direction: column;
|
|
3596
|
+
gap: 10px;
|
|
3597
|
+
padding: 14px 16px;
|
|
3598
|
+
border: 1px solid var(--border);
|
|
3599
|
+
border-radius: var(--radius);
|
|
3600
|
+
background: var(--surface);
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
.culprit-pv .xe-card-head {
|
|
3604
|
+
display: flex;
|
|
3605
|
+
flex-wrap: wrap;
|
|
3606
|
+
align-items: center;
|
|
3607
|
+
justify-content: space-between;
|
|
3608
|
+
gap: 8px;
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
.culprit-pv .xe-kind-pill {
|
|
3612
|
+
display: inline-flex;
|
|
3613
|
+
align-items: center;
|
|
3614
|
+
gap: 5px;
|
|
3615
|
+
padding: 2px 8px;
|
|
3616
|
+
border-radius: 999px;
|
|
3617
|
+
font-size: var(--fs-micro);
|
|
3618
|
+
font-weight: 600;
|
|
3619
|
+
border: 1px solid var(--border-strong);
|
|
3620
|
+
background: var(--raised);
|
|
3621
|
+
color: var(--text);
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
.culprit-pv .xe-kind-pill.deadlock,
|
|
3625
|
+
.culprit-pv .xe-kind-pill.error-high {
|
|
3626
|
+
border-color: var(--high);
|
|
3627
|
+
background: var(--high-bg);
|
|
3628
|
+
color: var(--high);
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
.culprit-pv .xe-kind-pill.error {
|
|
3632
|
+
border-color: var(--medium);
|
|
3633
|
+
background: var(--medium-bg);
|
|
3634
|
+
color: var(--medium);
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
.culprit-pv .xe-kind-pill.attention {
|
|
3638
|
+
border-color: var(--low);
|
|
3639
|
+
background: var(--low-bg);
|
|
3640
|
+
color: var(--low);
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
.culprit-pv .xe-time {
|
|
3644
|
+
font-family: var(--mono);
|
|
3645
|
+
font-size: var(--fs-micro);
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
.culprit-pv .xe-card-title {
|
|
3649
|
+
margin: 0;
|
|
3650
|
+
font-size: var(--fs-strong);
|
|
3651
|
+
font-weight: 650;
|
|
3652
|
+
color: var(--text);
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
.culprit-pv .xe-card-note {
|
|
3656
|
+
margin: 0;
|
|
3657
|
+
font-size: var(--fs-meta);
|
|
3658
|
+
line-height: 1.45;
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
.culprit-pv .xe-meta-grid {
|
|
3662
|
+
margin: 0;
|
|
3663
|
+
display: grid;
|
|
3664
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
3665
|
+
gap: 8px 12px;
|
|
3666
|
+
padding: 9px 11px;
|
|
3667
|
+
border-radius: var(--r-sm);
|
|
3668
|
+
border: 1px solid var(--border);
|
|
3669
|
+
background: var(--sunken);
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
.culprit-pv .xe-meta-item {
|
|
3673
|
+
min-width: 0;
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
.culprit-pv .xe-meta-item dt {
|
|
3677
|
+
font-size: var(--fs-2xs);
|
|
3678
|
+
text-transform: uppercase;
|
|
3679
|
+
letter-spacing: 0.04em;
|
|
3680
|
+
color: var(--text-3);
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
.culprit-pv .xe-meta-item dd {
|
|
3684
|
+
margin: 2px 0 0;
|
|
3685
|
+
font-family: var(--mono);
|
|
3686
|
+
font-size: var(--fs-meta);
|
|
3687
|
+
color: var(--text);
|
|
3688
|
+
overflow-wrap: anywhere;
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3691
|
+
.culprit-pv .xe-sql-block {
|
|
3692
|
+
border: 1px solid var(--border);
|
|
3693
|
+
border-radius: var(--r-sm);
|
|
3694
|
+
overflow: hidden;
|
|
3695
|
+
background: var(--code-bg);
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
.culprit-pv .xe-sql-head {
|
|
3699
|
+
display: flex;
|
|
3700
|
+
align-items: center;
|
|
3701
|
+
justify-content: space-between;
|
|
3702
|
+
gap: 8px;
|
|
3703
|
+
padding: 6px 10px;
|
|
3704
|
+
border-bottom: 1px solid var(--border);
|
|
3705
|
+
background: var(--raised);
|
|
3706
|
+
font-size: var(--fs-micro);
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
.culprit-pv .xe-sql {
|
|
3710
|
+
padding: 10px 12px;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
.culprit-pv .xe-deadlock-details {
|
|
3714
|
+
border: 1px solid var(--border);
|
|
3715
|
+
border-radius: var(--r-sm);
|
|
3716
|
+
background: var(--sunken);
|
|
3717
|
+
overflow: hidden;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
.culprit-pv .xe-deadlock-details > summary {
|
|
3721
|
+
cursor: pointer;
|
|
3722
|
+
padding: 8px 12px;
|
|
3723
|
+
font-size: var(--fs-ui);
|
|
3724
|
+
font-weight: 600;
|
|
3725
|
+
color: var(--text);
|
|
3726
|
+
background: var(--raised);
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
.culprit-pv .xe-deadlock-body {
|
|
3730
|
+
padding: 12px;
|
|
3731
|
+
border-top: 1px solid var(--border);
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3462
3734
|
@media (prefers-reduced-motion: reduce) {
|
|
3463
3735
|
:where(.culprit-pv),
|
|
3464
3736
|
:where(.culprit-pv) *,
|
package/pkg/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { Ability } from "./models/Ability.js";
|
|
2
|
+
export type { ActivityClient } from "./models/ActivityClient.js";
|
|
2
3
|
export type { ChangeKind } from "./models/ChangeKind.js";
|
|
3
4
|
export type { DatabaseProduct } from "./models/DatabaseProduct.js";
|
|
4
5
|
export type { Deadlock } from "./models/Deadlock.js";
|
|
@@ -6,13 +7,24 @@ export type { DeadlockFix } from "./models/DeadlockFix.js";
|
|
|
6
7
|
export type { DeadlockPattern } from "./models/DeadlockPattern.js";
|
|
7
8
|
export type { DeadlockProcess } from "./models/DeadlockProcess.js";
|
|
8
9
|
export type { DeadlockResource } from "./models/DeadlockResource.js";
|
|
10
|
+
export type { DefinitionPayload } from "./models/DefinitionPayload.js";
|
|
9
11
|
export type { DocdbMetrics } from "./models/DocdbMetrics.js";
|
|
10
12
|
export type { Engine } from "./models/Engine.js";
|
|
11
13
|
export type { EngineFacts } from "./models/EngineFacts.js";
|
|
14
|
+
export type { ExtendedEventsBatch } from "./models/ExtendedEventsBatch.js";
|
|
15
|
+
export type { ExtendedEventsFormat } from "./models/ExtendedEventsFormat.js";
|
|
12
16
|
export type { Guess } from "./models/Guess.js";
|
|
17
|
+
export type { ImportedEventDeadlock } from "./models/ImportedEventDeadlock.js";
|
|
18
|
+
export type { ImportedEventLocation } from "./models/ImportedEventLocation.js";
|
|
13
19
|
export type { InsightArea } from "./models/InsightArea.js";
|
|
14
20
|
export type { MssqlCurrentTableType } from "./models/MssqlCurrentTableType.js";
|
|
21
|
+
export type { MssqlExtendedEventKind } from "./models/MssqlExtendedEventKind.js";
|
|
22
|
+
export type { MssqlExtendedEventObservation } from "./models/MssqlExtendedEventObservation.js";
|
|
23
|
+
export type { NativeLogIssue } from "./models/NativeLogIssue.js";
|
|
24
|
+
export type { NativeLogLimits } from "./models/NativeLogLimits.js";
|
|
25
|
+
export type { NativeLogProblem } from "./models/NativeLogProblem.js";
|
|
15
26
|
export type { NodeRuntime } from "./models/NodeRuntime.js";
|
|
27
|
+
export type { PayloadUnavailable } from "./models/PayloadUnavailable.js";
|
|
16
28
|
export type { Plan } from "./models/Plan.js";
|
|
17
29
|
export type { PlanChange } from "./models/PlanChange.js";
|
|
18
30
|
export type { PlanDiff } from "./models/PlanDiff.js";
|