@localstack/appinspector-ui 1.0.197 → 1.0.199
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/index.cjs +518 -347
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +510 -339
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -491,7 +491,7 @@ var require_parse = __commonJS({
|
|
|
491
491
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
492
492
|
"use strict";
|
|
493
493
|
var SemVer = require_semver();
|
|
494
|
-
var
|
|
494
|
+
var parse3 = (version, options, throwErrors = false) => {
|
|
495
495
|
if (version instanceof SemVer) {
|
|
496
496
|
return version;
|
|
497
497
|
}
|
|
@@ -504,7 +504,7 @@ var require_parse = __commonJS({
|
|
|
504
504
|
throw er;
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
|
-
module2.exports =
|
|
507
|
+
module2.exports = parse3;
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
|
|
@@ -512,9 +512,9 @@ var require_parse = __commonJS({
|
|
|
512
512
|
var require_valid = __commonJS({
|
|
513
513
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
514
514
|
"use strict";
|
|
515
|
-
var
|
|
515
|
+
var parse3 = require_parse();
|
|
516
516
|
var valid = (version, options) => {
|
|
517
|
-
const v =
|
|
517
|
+
const v = parse3(version, options);
|
|
518
518
|
return v ? v.version : null;
|
|
519
519
|
};
|
|
520
520
|
module2.exports = valid;
|
|
@@ -525,9 +525,9 @@ var require_valid = __commonJS({
|
|
|
525
525
|
var require_clean = __commonJS({
|
|
526
526
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
527
527
|
"use strict";
|
|
528
|
-
var
|
|
528
|
+
var parse3 = require_parse();
|
|
529
529
|
var clean = (version, options) => {
|
|
530
|
-
const s =
|
|
530
|
+
const s = parse3(version.trim().replace(/^[=v]+/, ""), options);
|
|
531
531
|
return s ? s.version : null;
|
|
532
532
|
};
|
|
533
533
|
module2.exports = clean;
|
|
@@ -562,10 +562,10 @@ var require_inc = __commonJS({
|
|
|
562
562
|
var require_diff = __commonJS({
|
|
563
563
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports, module2) {
|
|
564
564
|
"use strict";
|
|
565
|
-
var
|
|
565
|
+
var parse3 = require_parse();
|
|
566
566
|
var diff = (version1, version2) => {
|
|
567
|
-
const v1 =
|
|
568
|
-
const v2 =
|
|
567
|
+
const v1 = parse3(version1, null, true);
|
|
568
|
+
const v2 = parse3(version2, null, true);
|
|
569
569
|
const comparison = v1.compare(v2);
|
|
570
570
|
if (comparison === 0) {
|
|
571
571
|
return null;
|
|
@@ -636,9 +636,9 @@ var require_patch = __commonJS({
|
|
|
636
636
|
var require_prerelease = __commonJS({
|
|
637
637
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
638
638
|
"use strict";
|
|
639
|
-
var
|
|
639
|
+
var parse3 = require_parse();
|
|
640
640
|
var prerelease = (version, options) => {
|
|
641
|
-
const parsed =
|
|
641
|
+
const parsed = parse3(version, options);
|
|
642
642
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
643
643
|
};
|
|
644
644
|
module2.exports = prerelease;
|
|
@@ -824,7 +824,7 @@ var require_coerce = __commonJS({
|
|
|
824
824
|
"node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
825
825
|
"use strict";
|
|
826
826
|
var SemVer = require_semver();
|
|
827
|
-
var
|
|
827
|
+
var parse3 = require_parse();
|
|
828
828
|
var { safeRe: re, t } = require_re();
|
|
829
829
|
var coerce = (version, options) => {
|
|
830
830
|
if (version instanceof SemVer) {
|
|
@@ -859,7 +859,7 @@ var require_coerce = __commonJS({
|
|
|
859
859
|
const patch = match[4] || "0";
|
|
860
860
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
861
861
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
862
|
-
return
|
|
862
|
+
return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
863
863
|
};
|
|
864
864
|
module2.exports = coerce;
|
|
865
865
|
}
|
|
@@ -1876,7 +1876,7 @@ var require_semver2 = __commonJS({
|
|
|
1876
1876
|
var constants = require_constants();
|
|
1877
1877
|
var SemVer = require_semver();
|
|
1878
1878
|
var identifiers = require_identifiers();
|
|
1879
|
-
var
|
|
1879
|
+
var parse3 = require_parse();
|
|
1880
1880
|
var valid = require_valid();
|
|
1881
1881
|
var clean = require_clean();
|
|
1882
1882
|
var inc = require_inc();
|
|
@@ -1914,7 +1914,7 @@ var require_semver2 = __commonJS({
|
|
|
1914
1914
|
var simplifyRange = require_simplify();
|
|
1915
1915
|
var subset = require_subset();
|
|
1916
1916
|
module2.exports = {
|
|
1917
|
-
parse:
|
|
1917
|
+
parse: parse3,
|
|
1918
1918
|
valid,
|
|
1919
1919
|
clean,
|
|
1920
1920
|
inc,
|
|
@@ -2017,7 +2017,7 @@ var require_copy_to_clipboard = __commonJS({
|
|
|
2017
2017
|
var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
|
|
2018
2018
|
return message.replace(/#{\s*key\s*}/g, copyKey);
|
|
2019
2019
|
}
|
|
2020
|
-
function copy(
|
|
2020
|
+
function copy(text3, options) {
|
|
2021
2021
|
var debug2, message, reselectPrevious, range, selection, mark, success = false;
|
|
2022
2022
|
if (!options) {
|
|
2023
2023
|
options = {};
|
|
@@ -2028,7 +2028,7 @@ var require_copy_to_clipboard = __commonJS({
|
|
|
2028
2028
|
range = document.createRange();
|
|
2029
2029
|
selection = document.getSelection();
|
|
2030
2030
|
mark = document.createElement("span");
|
|
2031
|
-
mark.textContent =
|
|
2031
|
+
mark.textContent = text3;
|
|
2032
2032
|
mark.ariaHidden = "true";
|
|
2033
2033
|
mark.style.all = "unset";
|
|
2034
2034
|
mark.style.position = "fixed";
|
|
@@ -2048,10 +2048,10 @@ var require_copy_to_clipboard = __commonJS({
|
|
|
2048
2048
|
debug2 && console.warn("trying IE specific stuff");
|
|
2049
2049
|
window.clipboardData.clearData();
|
|
2050
2050
|
var format3 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
|
|
2051
|
-
window.clipboardData.setData(format3,
|
|
2051
|
+
window.clipboardData.setData(format3, text3);
|
|
2052
2052
|
} else {
|
|
2053
2053
|
e2.clipboardData.clearData();
|
|
2054
|
-
e2.clipboardData.setData(options.format,
|
|
2054
|
+
e2.clipboardData.setData(options.format, text3);
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
2057
|
if (options.onCopy) {
|
|
@@ -2071,14 +2071,14 @@ var require_copy_to_clipboard = __commonJS({
|
|
|
2071
2071
|
debug2 && console.error("unable to copy using execCommand: ", err);
|
|
2072
2072
|
debug2 && console.warn("trying IE specific stuff");
|
|
2073
2073
|
try {
|
|
2074
|
-
window.clipboardData.setData(options.format || "text",
|
|
2074
|
+
window.clipboardData.setData(options.format || "text", text3);
|
|
2075
2075
|
options.onCopy && options.onCopy(window.clipboardData);
|
|
2076
2076
|
success = true;
|
|
2077
2077
|
} catch (err2) {
|
|
2078
2078
|
debug2 && console.error("unable to copy using clipboardData: ", err2);
|
|
2079
2079
|
debug2 && console.error("falling back to prompt");
|
|
2080
2080
|
message = format2("message" in options ? options.message : defaultMessage);
|
|
2081
|
-
window.prompt(message,
|
|
2081
|
+
window.prompt(message, text3);
|
|
2082
2082
|
}
|
|
2083
2083
|
} finally {
|
|
2084
2084
|
if (selection) {
|
|
@@ -2425,7 +2425,7 @@ __export(index_exports, {
|
|
|
2425
2425
|
module.exports = __toCommonJS(index_exports);
|
|
2426
2426
|
|
|
2427
2427
|
// src/pages/spans-list-page.tsx
|
|
2428
|
-
var
|
|
2428
|
+
var import_material28 = require("@mui/material");
|
|
2429
2429
|
var import_react65 = require("react");
|
|
2430
2430
|
|
|
2431
2431
|
// src/api/errors.ts
|
|
@@ -2495,8 +2495,10 @@ var EVENT_DETAILS_SERVICE_NAME_TEST_ID = "event-details-service-name";
|
|
|
2495
2495
|
var EVENT_DETAILS_OPERATION_NAME_TEST_ID = "event-details-operation-name";
|
|
2496
2496
|
var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
|
|
2497
2497
|
var EVENT_DETAILS_HEADING_TEST_ID = "event-details-heading";
|
|
2498
|
-
var
|
|
2499
|
-
var
|
|
2498
|
+
var EVENT_DETAILS_HEADING_STATUS_TEST_ID = "event-details-heading-status";
|
|
2499
|
+
var EVENT_DETAILS_HEADING_IAM_TEST_ID = "event-details-heading-iam";
|
|
2500
|
+
var EVENT_DETAILS_FUNCTION_ERROR_TEST_ID = "event-details-function-error";
|
|
2501
|
+
var EVENT_DETAILS_STACK_TRACE_TEST_ID = "event-details-stack-trace";
|
|
2500
2502
|
var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
|
|
2501
2503
|
var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
|
|
2502
2504
|
var EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID = "event-details-cfn-resource-type";
|
|
@@ -7148,12 +7150,12 @@ var isColorString = (type, testProp) => (v) => {
|
|
|
7148
7150
|
var splitColor = (aName, bName, cName) => (v) => {
|
|
7149
7151
|
if (!isString(v))
|
|
7150
7152
|
return v;
|
|
7151
|
-
const [a3, b3, c3,
|
|
7153
|
+
const [a3, b3, c3, alpha7] = v.match(floatRegex);
|
|
7152
7154
|
return {
|
|
7153
7155
|
[aName]: parseFloat(a3),
|
|
7154
7156
|
[bName]: parseFloat(b3),
|
|
7155
7157
|
[cName]: parseFloat(c3),
|
|
7156
|
-
alpha:
|
|
7158
|
+
alpha: alpha7 !== void 0 ? parseFloat(alpha7) : 1
|
|
7157
7159
|
};
|
|
7158
7160
|
};
|
|
7159
7161
|
|
|
@@ -8267,7 +8269,7 @@ function hueToRgb(p, q, t) {
|
|
|
8267
8269
|
return p + (q - p) * (2 / 3 - t) * 6;
|
|
8268
8270
|
return p;
|
|
8269
8271
|
}
|
|
8270
|
-
function hslaToRgba({ hue, saturation, lightness, alpha:
|
|
8272
|
+
function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
|
|
8271
8273
|
hue /= 360;
|
|
8272
8274
|
saturation /= 100;
|
|
8273
8275
|
lightness /= 100;
|
|
@@ -8287,7 +8289,7 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha6 }) {
|
|
|
8287
8289
|
red: Math.round(red * 255),
|
|
8288
8290
|
green: Math.round(green * 255),
|
|
8289
8291
|
blue: Math.round(blue * 255),
|
|
8290
|
-
alpha:
|
|
8292
|
+
alpha: alpha7
|
|
8291
8293
|
};
|
|
8292
8294
|
}
|
|
8293
8295
|
|
|
@@ -13104,7 +13106,7 @@ var ResponsiveTimestampCell = (0, import_react31.memo)(({ date }) => {
|
|
|
13104
13106
|
|
|
13105
13107
|
// src/dev-settings.tsx
|
|
13106
13108
|
var React5 = __toESM(require("react"), 1);
|
|
13107
|
-
var DEFAULT_DEV_SETTINGS = { requestTerms: "on", waterfallIssueBackgrounds: "
|
|
13109
|
+
var DEFAULT_DEV_SETTINGS = { operationStatus: "subtitle-chips", requestTerms: "on", waterfallIssueBackgrounds: "off", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
|
|
13108
13110
|
var DevSettingsContext = React5.createContext(DEFAULT_DEV_SETTINGS);
|
|
13109
13111
|
var useDevSettings = () => React5.useContext(DevSettingsContext);
|
|
13110
13112
|
|
|
@@ -13240,7 +13242,7 @@ var DownstreamCell = ({ downstream }) => {
|
|
|
13240
13242
|
pluralize(downstream.count, "op")
|
|
13241
13243
|
] }),
|
|
13242
13244
|
downstream.errors > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "error", count: downstream.errors, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.Cancel, { sx: { fontSize: 12 } }) }),
|
|
13243
|
-
downstream.warnings > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.
|
|
13245
|
+
downstream.warnings > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.GppMaybe, { sx: { fontSize: 12 } }) })
|
|
13244
13246
|
] }) });
|
|
13245
13247
|
};
|
|
13246
13248
|
|
|
@@ -15526,7 +15528,7 @@ var StatusIconWithTooltip = ({ span }) => {
|
|
|
15526
15528
|
if (!error && !warning2) return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_jsx_runtime125.Fragment, {});
|
|
15527
15529
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Tooltip, { title: buildTooltipContent(span), children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material5.Box, { sx: { alignItems: "center", cursor: "default", display: "flex" }, children: [
|
|
15528
15530
|
error && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.Cancel, { sx: { color: "error.main" } }) }),
|
|
15529
|
-
warning2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.
|
|
15531
|
+
warning2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.GppMaybe, { sx: { color: "warning.main" } }) })
|
|
15530
15532
|
] }) });
|
|
15531
15533
|
};
|
|
15532
15534
|
|
|
@@ -15547,9 +15549,12 @@ var fmtLimit = (value) => {
|
|
|
15547
15549
|
if (value === "unlimited") return "Unlimited";
|
|
15548
15550
|
return fmt(value);
|
|
15549
15551
|
};
|
|
15550
|
-
var StatRow = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
|
|
15552
|
+
var StatRow = ({ label, unit, value }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
|
|
15551
15553
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mr: 4 }, variant: "caption", children: label }),
|
|
15552
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.
|
|
15554
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
|
|
15555
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { fontWeight: 600, variant: "body2", children: fmtLimit(value) }),
|
|
15556
|
+
value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: value === 1 ? unit : `${unit}s` })
|
|
15557
|
+
] })
|
|
15553
15558
|
] });
|
|
15554
15559
|
var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) => {
|
|
15555
15560
|
const [anchorElement, setAnchorElement] = (0, import_react36.useState)();
|
|
@@ -15566,12 +15571,12 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15566
15571
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Skeleton, { sx: { minWidth: 120 } }) : /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
|
|
15567
15572
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: "Showing" }),
|
|
15568
15573
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { variant: "body2", children: visibleCount === void 0 ? "\u2014" : fmt(visibleCount) }),
|
|
15569
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: "
|
|
15574
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: visibleCount === 1 ? "request" : "requests" })
|
|
15570
15575
|
] }),
|
|
15571
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { title: "
|
|
15576
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { title: "Count details", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15572
15577
|
import_material6.IconButton,
|
|
15573
15578
|
{
|
|
15574
|
-
"aria-describedby": isOpen ? "
|
|
15579
|
+
"aria-describedby": isOpen ? "count-popover" : void 0,
|
|
15575
15580
|
onClick: (event) => {
|
|
15576
15581
|
setAnchorElement(isOpen ? void 0 : event.currentTarget);
|
|
15577
15582
|
},
|
|
@@ -15585,7 +15590,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15585
15590
|
{
|
|
15586
15591
|
anchorEl: anchorElement,
|
|
15587
15592
|
anchorOrigin: { horizontal: "right", vertical: "bottom" },
|
|
15588
|
-
id: "
|
|
15593
|
+
id: "count-popover",
|
|
15589
15594
|
onClose: () => {
|
|
15590
15595
|
setAnchorElement(void 0);
|
|
15591
15596
|
},
|
|
@@ -15593,14 +15598,25 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15593
15598
|
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
15594
15599
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { minWidth: 240, p: 2 }, children: [
|
|
15595
15600
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { fontWeight: 700, variant: "body2", children: "Storage" }),
|
|
15596
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "
|
|
15597
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15601
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "Each request groups the operations it caused. Limits count operations." }),
|
|
15602
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: [
|
|
15603
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15604
|
+
StatRow,
|
|
15605
|
+
{
|
|
15606
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The number of requests currently listed.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Requests shown" }) }),
|
|
15607
|
+
unit: "request",
|
|
15608
|
+
value: visibleCount
|
|
15609
|
+
}
|
|
15610
|
+
),
|
|
15611
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15612
|
+
StatRow,
|
|
15613
|
+
{
|
|
15614
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The number of operations stored, including the downstream operations of each request.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Operations stored" }) }),
|
|
15615
|
+
unit: "op",
|
|
15616
|
+
value: totalCount
|
|
15617
|
+
}
|
|
15618
|
+
)
|
|
15619
|
+
] }),
|
|
15604
15620
|
(systemLimitReached || licenseLimit !== void 0 && licenseLimit !== "unlimited") && /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
|
|
15605
15621
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Divider, { sx: { my: 1.5 } }),
|
|
15606
15622
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", fontWeight: 600, variant: "caption", children: "Limits" }),
|
|
@@ -15610,6 +15626,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15610
15626
|
StatRow,
|
|
15611
15627
|
{
|
|
15612
15628
|
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The maximum number of operations allowed by your current license.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "License limit" }) }),
|
|
15629
|
+
unit: "op",
|
|
15613
15630
|
value: licenseLimit
|
|
15614
15631
|
}
|
|
15615
15632
|
),
|
|
@@ -15617,6 +15634,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15617
15634
|
StatRow,
|
|
15618
15635
|
{
|
|
15619
15636
|
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The maximum number of operations that can be stored in the system.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "System limit" }) }),
|
|
15637
|
+
unit: "op",
|
|
15620
15638
|
value: systemLimit
|
|
15621
15639
|
}
|
|
15622
15640
|
)
|
|
@@ -15819,7 +15837,7 @@ var StatusFilter = ({ counts, onChange, value }) => {
|
|
|
15819
15837
|
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(StatusCount, { count: counts.error, "data-testid": ERROR_COUNT_TEST_ID })
|
|
15820
15838
|
] }),
|
|
15821
15839
|
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material7.ToggleButton, { value: "warning", children: [
|
|
15822
|
-
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons_material4.
|
|
15840
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons_material4.GppMaybe, { sx: { color: "warning.main", fontSize: 16 } }),
|
|
15823
15841
|
"Warnings",
|
|
15824
15842
|
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(StatusCount, { count: counts.warning, "data-testid": WARNING_COUNT_TEST_ID })
|
|
15825
15843
|
] })
|
|
@@ -16197,7 +16215,7 @@ var SpansDataGrid = ({
|
|
|
16197
16215
|
{
|
|
16198
16216
|
licenseLimit,
|
|
16199
16217
|
systemLimit,
|
|
16200
|
-
totalCount
|
|
16218
|
+
totalCount,
|
|
16201
16219
|
visibleCount: spans?.length
|
|
16202
16220
|
}
|
|
16203
16221
|
),
|
|
@@ -16702,14 +16720,14 @@ var getTraceBounds = (spans) => {
|
|
|
16702
16720
|
};
|
|
16703
16721
|
|
|
16704
16722
|
// src/components/trace-panel/trace-sidebar.tsx
|
|
16705
|
-
var
|
|
16706
|
-
var
|
|
16723
|
+
var import_icons_material16 = require("@mui/icons-material");
|
|
16724
|
+
var import_material26 = require("@mui/material");
|
|
16707
16725
|
var import_react61 = require("@xyflow/react");
|
|
16708
16726
|
var React125 = __toESM(require("react"), 1);
|
|
16709
16727
|
|
|
16710
16728
|
// src/components/event-details/event-details.tsx
|
|
16711
|
-
var
|
|
16712
|
-
var
|
|
16729
|
+
var import_icons_material12 = require("@mui/icons-material");
|
|
16730
|
+
var import_material20 = require("@mui/material");
|
|
16713
16731
|
var import_react51 = require("react");
|
|
16714
16732
|
|
|
16715
16733
|
// src/utils/event-utils.ts
|
|
@@ -16819,6 +16837,37 @@ var getEventGroupsByType = (events) => {
|
|
|
16819
16837
|
return groups;
|
|
16820
16838
|
};
|
|
16821
16839
|
|
|
16840
|
+
// src/utils/lambda-function-error.ts
|
|
16841
|
+
var parse2 = (value) => {
|
|
16842
|
+
if (typeof value !== "string") return value;
|
|
16843
|
+
try {
|
|
16844
|
+
return JSON.parse(value);
|
|
16845
|
+
} catch {
|
|
16846
|
+
return value;
|
|
16847
|
+
}
|
|
16848
|
+
};
|
|
16849
|
+
var text2 = (value) => {
|
|
16850
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
16851
|
+
return typeof value === "string" ? value : JSON.stringify(value);
|
|
16852
|
+
};
|
|
16853
|
+
var getLambdaFunctionError = (response) => {
|
|
16854
|
+
const parsed = parse2(response);
|
|
16855
|
+
if (!parsed || typeof parsed !== "object" || !("FunctionError" in parsed) || typeof parsed.FunctionError !== "string") {
|
|
16856
|
+
return void 0;
|
|
16857
|
+
}
|
|
16858
|
+
const payload = "Payload" in parsed ? parse2(parsed.Payload) : void 0;
|
|
16859
|
+
const error = payload && typeof payload === "object" ? payload : {};
|
|
16860
|
+
const stackTrace = Array.isArray(error.stackTrace) && error.stackTrace.length > 0 ? error.stackTrace.map((frame2) => String(frame2).replace(/\n$/, "")).join("\n") : void 0;
|
|
16861
|
+
return {
|
|
16862
|
+
// A runtime that returns a non-JSON payload: show it as the message.
|
|
16863
|
+
errorMessage: text2(error.errorMessage) ?? (typeof payload === "string" ? text2(payload) : void 0),
|
|
16864
|
+
errorType: text2(error.errorType),
|
|
16865
|
+
functionError: parsed.FunctionError,
|
|
16866
|
+
requestId: text2(error.requestId),
|
|
16867
|
+
stackTrace
|
|
16868
|
+
};
|
|
16869
|
+
};
|
|
16870
|
+
|
|
16822
16871
|
// src/utils/time.ts
|
|
16823
16872
|
function unixNanoToDate(unixNanoString) {
|
|
16824
16873
|
const milliseconds = unixNanoToMilliseconds(unixNanoString);
|
|
@@ -16838,8 +16887,8 @@ var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
|
16838
16887
|
var CopyButton = ({ value }) => {
|
|
16839
16888
|
const [copied, setCopied] = (0, import_react40.useState)(false);
|
|
16840
16889
|
const handleCopy = (0, import_react40.useCallback)(() => {
|
|
16841
|
-
const
|
|
16842
|
-
void navigator.clipboard.writeText(
|
|
16890
|
+
const text3 = typeof value === "string" ? value : JSON.stringify(value, void 0, 2);
|
|
16891
|
+
void navigator.clipboard.writeText(text3).then(() => {
|
|
16843
16892
|
setCopied(true);
|
|
16844
16893
|
setTimeout(() => {
|
|
16845
16894
|
setCopied(false);
|
|
@@ -16877,7 +16926,7 @@ var StatusIcon = ({ errorLevel }) => {
|
|
|
16877
16926
|
}
|
|
16878
16927
|
case EventLevel.LevelPermission:
|
|
16879
16928
|
case EventLevel.LevelWarning: {
|
|
16880
|
-
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.
|
|
16929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.GppMaybe, { sx: { color: "orange" } });
|
|
16881
16930
|
}
|
|
16882
16931
|
default: {
|
|
16883
16932
|
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.CheckCircle, { sx: { color: "lightgray" } });
|
|
@@ -16902,7 +16951,7 @@ var PermissionIcon = ({ status }) => {
|
|
|
16902
16951
|
return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.Error, { sx: { color: "error.main", fontSize: "1rem" } });
|
|
16903
16952
|
}
|
|
16904
16953
|
case "implicitly_denied": {
|
|
16905
|
-
return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.
|
|
16954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.GppMaybe, { sx: { color: "warning.main", fontSize: "1rem" } });
|
|
16906
16955
|
}
|
|
16907
16956
|
}
|
|
16908
16957
|
};
|
|
@@ -16969,12 +17018,7 @@ var IAMEventDetail = ({ event }) => {
|
|
|
16969
17018
|
var import_material14 = require("@mui/material");
|
|
16970
17019
|
var import_react41 = require("react");
|
|
16971
17020
|
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
16972
|
-
var
|
|
16973
|
-
if (isAllowed) return "success.main";
|
|
16974
|
-
if (spanStatusCode === 2) return "error.main";
|
|
16975
|
-
return "warning.main";
|
|
16976
|
-
};
|
|
16977
|
-
var IAMPermissionItem = ({ event, spanStatusCode }) => {
|
|
17021
|
+
var IAMPermissionItem = ({ event }) => {
|
|
16978
17022
|
const parsedData = (0, import_react41.useMemo)(() => {
|
|
16979
17023
|
const payloadString = event.attributes?.payload;
|
|
16980
17024
|
if (!payloadString) return;
|
|
@@ -16986,36 +17030,31 @@ var IAMPermissionItem = ({ event, spanStatusCode }) => {
|
|
|
16986
17030
|
return null;
|
|
16987
17031
|
}
|
|
16988
17032
|
const { parsedIAM } = parsedData;
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
|
|
16996
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
16997
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
|
|
16998
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: parsedIAM.principal })
|
|
16999
|
-
] })
|
|
17000
|
-
] }),
|
|
17001
|
-
parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
|
|
17002
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
|
|
17003
|
-
parsedIAM.details.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
17004
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block" }, variant: "body2", children: action }),
|
|
17005
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: action })
|
|
17006
|
-
] }, action))
|
|
17007
|
-
] }),
|
|
17008
|
-
parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
|
|
17009
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
|
|
17010
|
-
parsedIAM.details.resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
17011
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
|
|
17012
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: resource })
|
|
17013
|
-
] }, resource))
|
|
17033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { sx: { mb: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { spacing: 1, children: [
|
|
17034
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
|
|
17035
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
|
|
17036
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
17037
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
|
|
17038
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: parsedIAM.principal })
|
|
17014
17039
|
] })
|
|
17040
|
+
] }),
|
|
17041
|
+
parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
|
|
17042
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
|
|
17043
|
+
parsedIAM.details.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
17044
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block" }, variant: "body2", children: action }),
|
|
17045
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: action })
|
|
17046
|
+
] }, action))
|
|
17047
|
+
] }),
|
|
17048
|
+
parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
|
|
17049
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
|
|
17050
|
+
parsedIAM.details.resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
17051
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
|
|
17052
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: resource })
|
|
17053
|
+
] }, resource))
|
|
17015
17054
|
] })
|
|
17016
|
-
] });
|
|
17055
|
+
] }) });
|
|
17017
17056
|
};
|
|
17018
|
-
var IAMPermissionDetail = ({ events
|
|
17057
|
+
var IAMPermissionDetail = ({ events }) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { children: events.map((event) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(IAMPermissionItem, { event }, `${event.span_id}-${event.event_id}`)) });
|
|
17019
17058
|
|
|
17020
17059
|
// src/components/event-details/payload-viewer.tsx
|
|
17021
17060
|
var import_material16 = require("@mui/material");
|
|
@@ -18956,11 +18995,10 @@ var getEventLevelFromGroup = (group3) => {
|
|
|
18956
18995
|
var EventDetail = ({
|
|
18957
18996
|
displayText,
|
|
18958
18997
|
events,
|
|
18959
|
-
spanStatusCode,
|
|
18960
18998
|
type
|
|
18961
18999
|
}) => {
|
|
18962
19000
|
if (type === "permission") {
|
|
18963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IAMPermissionDetail, { events
|
|
19001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IAMPermissionDetail, { events });
|
|
18964
19002
|
}
|
|
18965
19003
|
const eventLevel = getEventLevelFromGroup(type);
|
|
18966
19004
|
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material17.Box, { children: [
|
|
@@ -25981,7 +26019,7 @@ var ProtocolLib = class {
|
|
|
25981
26019
|
if (output !== void 0 && queryErrorHeader != null) {
|
|
25982
26020
|
const [Code, Type] = queryErrorHeader.split(";");
|
|
25983
26021
|
const keys = Object.keys(output);
|
|
25984
|
-
const
|
|
26022
|
+
const Error2 = {
|
|
25985
26023
|
Code,
|
|
25986
26024
|
Type
|
|
25987
26025
|
};
|
|
@@ -25989,10 +26027,10 @@ var ProtocolLib = class {
|
|
|
25989
26027
|
output.Type = Type;
|
|
25990
26028
|
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
25991
26029
|
const k2 = keys[i2];
|
|
25992
|
-
|
|
26030
|
+
Error2[k2 === "message" ? "Message" : k2] = output[k2];
|
|
25993
26031
|
}
|
|
25994
|
-
delete
|
|
25995
|
-
output.Error =
|
|
26032
|
+
delete Error2.__type;
|
|
26033
|
+
output.Error = Error2;
|
|
25996
26034
|
}
|
|
25997
26035
|
}
|
|
25998
26036
|
queryCompatOutput(queryCompatErrorData, errorData) {
|
|
@@ -31081,10 +31119,10 @@ UAItem.prototype.parseCH = function() {
|
|
|
31081
31119
|
break;
|
|
31082
31120
|
case RESULT2:
|
|
31083
31121
|
var data = this.data;
|
|
31084
|
-
var
|
|
31122
|
+
var parse3 = function(itemType) {
|
|
31085
31123
|
return data[itemType].getItem().setCH(uaCH).parseCH().get();
|
|
31086
31124
|
};
|
|
31087
|
-
this.set(BROWSER,
|
|
31125
|
+
this.set(BROWSER, parse3(BROWSER)).set(CPU, parse3(CPU)).set(DEVICE, parse3(DEVICE)).set(ENGINE, parse3(ENGINE)).set(OS, parse3(OS));
|
|
31088
31126
|
}
|
|
31089
31127
|
return this;
|
|
31090
31128
|
};
|
|
@@ -31376,8 +31414,110 @@ var LambdaInvokeLogsSection = ({ endTimeNano, functionName: functionName2, regio
|
|
|
31376
31414
|
return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Box, { sx: { backgroundColor: (theme) => theme.palette.background.default, borderRadius: 1, p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("pre", { style: { margin: 0, overflow: "auto" }, children: logs.map((log) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Typography, { variant: "body2", children: `[${log.timestamp}] ${log.message}` }, log.ptr)) }) });
|
|
31377
31415
|
};
|
|
31378
31416
|
|
|
31379
|
-
// src/components/event-details/
|
|
31417
|
+
// src/components/event-details/operation-status-badges.tsx
|
|
31418
|
+
var import_icons_material11 = require("@mui/icons-material");
|
|
31419
|
+
var import_material19 = require("@mui/material");
|
|
31380
31420
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
31421
|
+
var IAM = {
|
|
31422
|
+
allowed: { color: "success", icon: import_icons_material11.GppGood, label: "IAM allowed", title: "IAM allowed the call" },
|
|
31423
|
+
denied: { color: "error", icon: import_icons_material11.GppBad, label: "IAM denied", title: "IAM denied and blocked the call" },
|
|
31424
|
+
suppressed: { color: "text", icon: import_icons_material11.HelpOutline, label: "IAM hidden", title: "IAM results are hidden: upgrade your license to view" },
|
|
31425
|
+
warning: { color: "warning", icon: import_icons_material11.GppMaybe, label: "IAM warning", title: "IAM denied the call, but enforcement is off, so it went through" }
|
|
31426
|
+
};
|
|
31427
|
+
var sentenceCase = (text3) => text3.charAt(0) + text3.slice(1).toLowerCase();
|
|
31428
|
+
var paletteColor = (color2) => color2 === "text" ? "text.secondary" : `${color2}.main`;
|
|
31429
|
+
var tint = (color2) => ({
|
|
31430
|
+
bgcolor: (theme) => color2 === "text" ? theme.palette.action.hover : (0, import_material19.alpha)(theme.palette[color2].main, 0.12),
|
|
31431
|
+
borderRadius: 1,
|
|
31432
|
+
color: (theme) => {
|
|
31433
|
+
if (color2 === "text") return theme.palette.text.primary;
|
|
31434
|
+
const main = theme.palette[color2].main;
|
|
31435
|
+
return theme.palette.mode === "dark" ? (0, import_material19.lighten)(main, 0.55) : (0, import_material19.darken)(main, 0.45);
|
|
31436
|
+
},
|
|
31437
|
+
px: 0.75,
|
|
31438
|
+
py: 0.25
|
|
31439
|
+
});
|
|
31440
|
+
var clickable = (onClick, isTinted) => onClick === void 0 ? {} : {
|
|
31441
|
+
component: import_material19.ButtonBase,
|
|
31442
|
+
onClick,
|
|
31443
|
+
sx: { "&:hover": isTinted ? { filter: "brightness(1.15)" } : { textDecoration: "underline" }, "borderRadius": 1, "cursor": "pointer", "font": "inherit" }
|
|
31444
|
+
};
|
|
31445
|
+
var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, status, statusLabel, variant }) => {
|
|
31446
|
+
const isError = status === "error";
|
|
31447
|
+
const statusText = isError ? statusLabel ?? "Error" : "OK";
|
|
31448
|
+
const StatusIcon2 = isError ? import_icons_material11.Cancel : import_icons_material11.CheckCircle;
|
|
31449
|
+
const statusColor = isError ? "error" : "success";
|
|
31450
|
+
const iamStyle = iam === void 0 ? void 0 : IAM[iam];
|
|
31451
|
+
const iamPrefix = variant === "subtitle-chips" ? "" : "IAM \u2022 ";
|
|
31452
|
+
const iamLabel = iamPermission === void 0 || iam === "suppressed" ? iamStyle?.label : `${iamPrefix}${sentenceCase(formatPermissionStatus(iamPermission))}`;
|
|
31453
|
+
const showStatus = status !== "unset";
|
|
31454
|
+
if (variant === "chips") {
|
|
31455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { display: "flex", flex: "none", gap: 0.5 }, children: [
|
|
31456
|
+
showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
31457
|
+
import_material19.Chip,
|
|
31458
|
+
{
|
|
31459
|
+
color: statusColor,
|
|
31460
|
+
"data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
|
|
31461
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, {}),
|
|
31462
|
+
label: statusText,
|
|
31463
|
+
size: "small",
|
|
31464
|
+
variant: "outlined"
|
|
31465
|
+
}
|
|
31466
|
+
),
|
|
31467
|
+
iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: iamStyle.title, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
31468
|
+
import_material19.Chip,
|
|
31469
|
+
{
|
|
31470
|
+
color: iamStyle.color === "text" ? "default" : iamStyle.color,
|
|
31471
|
+
"data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
|
|
31472
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, {}),
|
|
31473
|
+
label: iamLabel,
|
|
31474
|
+
size: "small",
|
|
31475
|
+
variant: "outlined"
|
|
31476
|
+
}
|
|
31477
|
+
) })
|
|
31478
|
+
] });
|
|
31479
|
+
}
|
|
31480
|
+
if (variant === "icons") {
|
|
31481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { alignItems: "center", display: "flex", flex: "none", gap: 0.25 }, children: [
|
|
31482
|
+
showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: isError ? `Failed: ${statusText}` : "Succeeded", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, { color: statusColor, "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID, fontSize: "small" }) }),
|
|
31483
|
+
iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: iamStyle.title, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, { "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID, fontSize: "small", sx: { color: paletteColor(iamStyle.color) } }) })
|
|
31484
|
+
] });
|
|
31485
|
+
}
|
|
31486
|
+
const isTinted = variant === "subtitle-chips";
|
|
31487
|
+
if (!showStatus && !iamStyle) {
|
|
31488
|
+
return null;
|
|
31489
|
+
}
|
|
31490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
31491
|
+
showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
|
|
31492
|
+
import_material19.Box,
|
|
31493
|
+
{
|
|
31494
|
+
"data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
|
|
31495
|
+
...clickable(onStatusClick, isTinted),
|
|
31496
|
+
sx: { alignItems: "center", color: `${statusColor}.main`, display: "flex", gap: 0.5, minWidth: 0, ...clickable(onStatusClick, isTinted).sx, ...isTinted ? tint(statusColor) : {} },
|
|
31497
|
+
children: [
|
|
31498
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, { sx: { color: isTinted ? `${statusColor}.main` : void 0, fontSize: 14 } }),
|
|
31499
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: isTinted ? "inherit" : void 0, noWrap: true, variant: "caption", children: isError ? `Failed \xB7 ${statusText}` : "Succeeded" })
|
|
31500
|
+
]
|
|
31501
|
+
}
|
|
31502
|
+
),
|
|
31503
|
+
showStatus && iamStyle && !isTinted && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.disabled", variant: "caption", children: "|" }),
|
|
31504
|
+
iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
|
|
31505
|
+
import_material19.Box,
|
|
31506
|
+
{
|
|
31507
|
+
"data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
|
|
31508
|
+
...clickable(onIamClick, isTinted),
|
|
31509
|
+
sx: { alignItems: "center", color: paletteColor(iamStyle.color), display: "flex", flex: "none", gap: 0.5, ...clickable(onIamClick, isTinted).sx, ...isTinted ? tint(iamStyle.color) : {} },
|
|
31510
|
+
children: [
|
|
31511
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, { sx: { color: isTinted ? paletteColor(iamStyle.color) : void 0, fontSize: 14 } }),
|
|
31512
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: isTinted ? "inherit" : void 0, variant: "caption", children: iamLabel })
|
|
31513
|
+
]
|
|
31514
|
+
}
|
|
31515
|
+
)
|
|
31516
|
+
] });
|
|
31517
|
+
};
|
|
31518
|
+
|
|
31519
|
+
// src/components/event-details/event-details.tsx
|
|
31520
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
31381
31521
|
var checkIsLambdaInvoke = (span) => {
|
|
31382
31522
|
if (span.service_name !== "lambda") {
|
|
31383
31523
|
return false;
|
|
@@ -31391,14 +31531,17 @@ var checkIsSqsSendMessage = (span) => {
|
|
|
31391
31531
|
}
|
|
31392
31532
|
return span.operation_name.startsWith("SendMessage");
|
|
31393
31533
|
};
|
|
31394
|
-
var
|
|
31395
|
-
|
|
31396
|
-
|
|
31397
|
-
|
|
31398
|
-
|
|
31534
|
+
var PERMISSION_SEVERITY = ["explicitly_denied", "implicitly_denied", "explicitly_allowed"];
|
|
31535
|
+
var getWorstPermission = (events) => PERMISSION_SEVERITY.find((permission) => events.some((event) => event.permission === permission));
|
|
31536
|
+
var IAM_OUTCOME = { allowed: "allowed", error: "denied", none: void 0, warning: "warning" };
|
|
31537
|
+
var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
|
|
31538
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
|
|
31539
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
31540
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
|
|
31541
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(CopyButton, { value: copy ?? children })
|
|
31399
31542
|
] })
|
|
31400
31543
|
] });
|
|
31401
|
-
var EmptyTab = ({ children }) => /* @__PURE__ */ (0,
|
|
31544
|
+
var EmptyTab = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", variant: "body2", children });
|
|
31402
31545
|
var EventDetails = ({ onClose, selectedEvent }) => {
|
|
31403
31546
|
const eventGroups = (0, import_react51.useMemo)(
|
|
31404
31547
|
() => getEventGroupsByType(selectedEvent?.events ?? []),
|
|
@@ -31406,8 +31549,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31406
31549
|
);
|
|
31407
31550
|
const [parseNestedJson, setParseNestedJson] = (0, import_react51.useState)(true);
|
|
31408
31551
|
const [tab, setTab] = (0, import_react51.useState)("details");
|
|
31552
|
+
const { operationStatus: variant } = useDevSettings();
|
|
31409
31553
|
if (!selectedEvent) {
|
|
31410
|
-
return /* @__PURE__ */ (0,
|
|
31554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
|
|
31411
31555
|
}
|
|
31412
31556
|
const isLambdaInvoke = checkIsLambdaInvoke(selectedEvent);
|
|
31413
31557
|
const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
|
|
@@ -31433,27 +31577,48 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31433
31577
|
}
|
|
31434
31578
|
}
|
|
31435
31579
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
31580
|
+
const functionError = isLambdaInvoke ? getLambdaFunctionError(selectedEvent.attributes?.["localstack.aws.service.response"]) : void 0;
|
|
31581
|
+
const errorType = functionError?.errorType ?? issues.errorType;
|
|
31436
31582
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
31437
31583
|
const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
|
|
31438
31584
|
const showError = issues.error;
|
|
31439
31585
|
const showPermissions = selectedEvent.iam_errors_suppressed === true || eventGroups.permissions !== void 0;
|
|
31440
31586
|
const showLogs = isLambdaInvoke && requestId !== void 0;
|
|
31441
31587
|
const activeTab = tab === "error" && !showError || tab === "permissions" && !showPermissions || tab === "logs" && !showLogs ? "details" : tab;
|
|
31442
|
-
const errorMessages = [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !==
|
|
31443
|
-
const
|
|
31444
|
-
|
|
31588
|
+
const errorMessages = functionError?.errorMessage === void 0 ? [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== errorType) : [functionError.errorMessage];
|
|
31589
|
+
const iamEvents = getIamEvents(selectedEvent);
|
|
31590
|
+
const iamPermission = getWorstPermission(iamEvents);
|
|
31591
|
+
const iamOutcome = selectedEvent.iam_errors_suppressed === true ? "suppressed" : IAM_OUTCOME[iam.level ?? (iamEvents.length > 0 ? "allowed" : "none")];
|
|
31592
|
+
const statusBadges = /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
31593
|
+
OperationStatusBadges,
|
|
31445
31594
|
{
|
|
31446
|
-
|
|
31595
|
+
iam: iamOutcome,
|
|
31596
|
+
iamPermission,
|
|
31597
|
+
onIamClick: showPermissions ? () => {
|
|
31598
|
+
setTab("permissions");
|
|
31599
|
+
} : void 0,
|
|
31600
|
+
onStatusClick: () => {
|
|
31601
|
+
setTab(showError ? "error" : "response");
|
|
31602
|
+
},
|
|
31603
|
+
status: issues.error ? "error" : selectedEvent.status_code === 1 ? "ok" : "unset",
|
|
31604
|
+
statusLabel: errorType,
|
|
31605
|
+
variant
|
|
31606
|
+
}
|
|
31607
|
+
);
|
|
31608
|
+
const rawDataSwitch = /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
31609
|
+
import_material20.FormControlLabel,
|
|
31610
|
+
{
|
|
31611
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Switch, { checked: !parseNestedJson, onChange: (event) => {
|
|
31447
31612
|
setParseNestedJson(!event.target.checked);
|
|
31448
31613
|
}, size: "small" }),
|
|
31449
|
-
label: /* @__PURE__ */ (0,
|
|
31614
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { variant: "caption", children: "View raw data" }),
|
|
31450
31615
|
sx: { mb: 1, mr: 0 }
|
|
31451
31616
|
}
|
|
31452
31617
|
);
|
|
31453
|
-
const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ (0,
|
|
31454
|
-
return /* @__PURE__ */ (0,
|
|
31455
|
-
/* @__PURE__ */ (0,
|
|
31456
|
-
|
|
31618
|
+
const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.GppBad, { color: "error", sx: { fontSize: 16 } }) : iam.level === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.GppMaybe, { color: "warning", sx: { fontSize: 16 } }) : void 0;
|
|
31619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
31620
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
31621
|
+
import_material20.Box,
|
|
31457
31622
|
{
|
|
31458
31623
|
sx: {
|
|
31459
31624
|
alignItems: "center",
|
|
@@ -31465,23 +31630,22 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31465
31630
|
py: 1
|
|
31466
31631
|
},
|
|
31467
31632
|
children: [
|
|
31468
|
-
/* @__PURE__ */ (0,
|
|
31469
|
-
/* @__PURE__ */ (0,
|
|
31470
|
-
/* @__PURE__ */ (0,
|
|
31471
|
-
/* @__PURE__ */ (0,
|
|
31472
|
-
/* @__PURE__ */ (0,
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", "data-testid": EVENT_DETAILS_HEADING_DURATION_TEST_ID, sx: { flex: "none", ml: "auto", textAlign: "right", width: 64 }, variant: "body2", children: formatDuration(Number(duration)) })
|
|
31633
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { containerType: "inline-size", flex: 1, minWidth: 0 }, children: [
|
|
31634
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
|
|
31635
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { "@container (min-width: 560px)": { flexWrap: "nowrap" }, "alignItems": "center", "columnGap": 1, "display": "flex", "flexWrap": variant.startsWith("subtitle") ? "wrap" : "nowrap", "minWidth": 0 }, children: [
|
|
31636
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
|
|
31637
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
|
|
31638
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { sx: variant.startsWith("subtitle") ? { "@container (min-width: 560px)": { flexBasis: "auto", order: 0 }, "display": "flex", "flex": "none", "flexBasis": "100%", "order": 1 } : { display: "flex", flex: "none" }, children: statusBadges }),
|
|
31639
|
+
resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource })
|
|
31476
31640
|
] })
|
|
31477
31641
|
] }),
|
|
31478
|
-
onClose && /* @__PURE__ */ (0,
|
|
31642
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.IconButton, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Close, {}) })
|
|
31479
31643
|
]
|
|
31480
31644
|
}
|
|
31481
31645
|
),
|
|
31482
|
-
/* @__PURE__ */ (0,
|
|
31483
|
-
/* @__PURE__ */ (0,
|
|
31484
|
-
|
|
31646
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
|
|
31647
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
31648
|
+
import_material20.Tabs,
|
|
31485
31649
|
{
|
|
31486
31650
|
onChange: (_event, value) => {
|
|
31487
31651
|
setTab(value);
|
|
@@ -31500,87 +31664,94 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31500
31664
|
value: activeTab,
|
|
31501
31665
|
variant: "scrollable",
|
|
31502
31666
|
children: [
|
|
31503
|
-
/* @__PURE__ */ (0,
|
|
31504
|
-
/* @__PURE__ */ (0,
|
|
31505
|
-
/* @__PURE__ */ (0,
|
|
31506
|
-
showError && /* @__PURE__ */ (0,
|
|
31507
|
-
showPermissions && /* @__PURE__ */ (0,
|
|
31508
|
-
showLogs && /* @__PURE__ */ (0,
|
|
31667
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
|
|
31668
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
|
|
31669
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
|
|
31670
|
+
showError && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Cancel, { color: "error", sx: { fontSize: 16 } }), iconPosition: "end", label: "Error", value: "error" }),
|
|
31671
|
+
showPermissions && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
|
|
31672
|
+
showLogs && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" })
|
|
31509
31673
|
]
|
|
31510
31674
|
}
|
|
31511
31675
|
),
|
|
31512
|
-
/* @__PURE__ */ (0,
|
|
31513
|
-
activeTab === "details" && /* @__PURE__ */ (0,
|
|
31514
|
-
/* @__PURE__ */ (0,
|
|
31515
|
-
/* @__PURE__ */ (0,
|
|
31516
|
-
/* @__PURE__ */ (0,
|
|
31517
|
-
/* @__PURE__ */ (0,
|
|
31676
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { p: 2 }, children: [
|
|
31677
|
+
activeTab === "details" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 2, children: [
|
|
31678
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
|
|
31679
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31680
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
|
|
31681
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: selectedEvent.operation_name })
|
|
31518
31682
|
] }),
|
|
31519
|
-
/* @__PURE__ */ (0,
|
|
31520
|
-
/* @__PURE__ */ (0,
|
|
31521
|
-
Boolean(cfnResourceType) && /* @__PURE__ */ (0,
|
|
31683
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
|
|
31684
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
|
|
31685
|
+
Boolean(cfnResourceType) && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
|
|
31522
31686
|
] }),
|
|
31523
|
-
Boolean(resourceArn) && /* @__PURE__ */ (0,
|
|
31524
|
-
/* @__PURE__ */ (0,
|
|
31525
|
-
/* @__PURE__ */ (0,
|
|
31526
|
-
/* @__PURE__ */ (0,
|
|
31687
|
+
Boolean(resourceArn) && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
|
|
31688
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31689
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
|
|
31690
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
|
|
31527
31691
|
] }),
|
|
31528
|
-
/* @__PURE__ */ (0,
|
|
31529
|
-
/* @__PURE__ */ (0,
|
|
31692
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
|
|
31693
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
31530
31694
|
Field,
|
|
31531
31695
|
{
|
|
31532
31696
|
copy: unixNanoToDate(selectedEvent.start_time_unix_nano)?.toISOString(),
|
|
31533
31697
|
label: "Start Time",
|
|
31534
31698
|
testId: EVENT_DETAILS_START_TIME_TEST_ID,
|
|
31535
31699
|
testIdOn: "row",
|
|
31536
|
-
children: /* @__PURE__ */ (0,
|
|
31700
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
|
|
31537
31701
|
}
|
|
31538
31702
|
),
|
|
31539
|
-
duration !== void 0 && /* @__PURE__ */ (0,
|
|
31703
|
+
duration !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
|
|
31540
31704
|
duration,
|
|
31541
31705
|
"ms"
|
|
31542
31706
|
] })
|
|
31543
|
-
] }),
|
|
31544
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { children: [
|
|
31545
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Status" }),
|
|
31546
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Stack, { alignItems: "center", direction: "row", flexWrap: "wrap", gap: 1, sx: { mb: eventGroups.errors || eventGroups.warnings ? 1 : 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
31547
|
-
import_material19.Chip,
|
|
31548
|
-
{
|
|
31549
|
-
color: selectedEvent.status_code === 2 ? "error" : selectedEvent.status_code === 1 ? "success" : "default",
|
|
31550
|
-
"data-testid": EVENT_DETAILS_STATUS_TEST_ID,
|
|
31551
|
-
label: selectedEvent.status_code === 2 ? "Error" : selectedEvent.status_code === 1 ? "OK" : "Unset",
|
|
31552
|
-
size: "small"
|
|
31553
|
-
}
|
|
31554
|
-
) })
|
|
31555
31707
|
] })
|
|
31556
31708
|
] }),
|
|
31557
|
-
eventGroups.errors && /* @__PURE__ */ (0,
|
|
31558
|
-
eventGroups.warnings && /* @__PURE__ */ (0,
|
|
31559
|
-
eventGroups.info && /* @__PURE__ */ (0,
|
|
31709
|
+
eventGroups.errors && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
|
|
31710
|
+
eventGroups.warnings && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
|
|
31711
|
+
eventGroups.info && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
|
|
31560
31712
|
] }),
|
|
31561
|
-
activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ (0,
|
|
31713
|
+
activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
31562
31714
|
rawDataSwitch,
|
|
31563
|
-
/* @__PURE__ */ (0,
|
|
31715
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
31564
31716
|
] })),
|
|
31565
|
-
activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ (0,
|
|
31717
|
+
activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
31566
31718
|
rawDataSwitch,
|
|
31567
|
-
isResponseSuppressed ? /* @__PURE__ */ (0,
|
|
31719
|
+
isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Alert, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
31568
31720
|
] })),
|
|
31569
|
-
activeTab === "error" && /* @__PURE__ */ (0,
|
|
31570
|
-
/* @__PURE__ */ (0,
|
|
31571
|
-
/* @__PURE__ */ (0,
|
|
31572
|
-
errorMessages.length > 0 && /* @__PURE__ */ (0,
|
|
31721
|
+
activeTab === "error" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 2, children: [
|
|
31722
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 1, children: [
|
|
31723
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Type", children: errorType }),
|
|
31724
|
+
errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|
|
31725
|
+
functionError && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31726
|
+
functionError.requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Request ID", children: functionError.requestId }),
|
|
31727
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
|
|
31728
|
+
] })
|
|
31729
|
+
] }),
|
|
31730
|
+
functionError?.stackTrace !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
|
|
31731
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
31732
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
|
|
31733
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(CopyButton, { value: functionError.stackTrace })
|
|
31734
|
+
] }),
|
|
31735
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
31736
|
+
import_material20.Box,
|
|
31737
|
+
{
|
|
31738
|
+
component: "pre",
|
|
31739
|
+
"data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
|
|
31740
|
+
sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
|
|
31741
|
+
children: functionError.stackTrace
|
|
31742
|
+
}
|
|
31743
|
+
)
|
|
31573
31744
|
] }),
|
|
31574
|
-
exceptionPayload !== void 0 && /* @__PURE__ */ (0,
|
|
31575
|
-
/* @__PURE__ */ (0,
|
|
31576
|
-
/* @__PURE__ */ (0,
|
|
31745
|
+
exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
|
|
31746
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
|
|
31747
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
|
|
31577
31748
|
] })
|
|
31578
31749
|
] }),
|
|
31579
|
-
activeTab === "permissions" && /* @__PURE__ */ (0,
|
|
31580
|
-
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0,
|
|
31581
|
-
eventGroups.permissions && /* @__PURE__ */ (0,
|
|
31750
|
+
activeTab === "permissions" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
31751
|
+
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Alert, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
|
|
31752
|
+
eventGroups.permissions && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" })
|
|
31582
31753
|
] }),
|
|
31583
|
-
activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ (0,
|
|
31754
|
+
activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
31584
31755
|
LambdaInvokeLogsSection,
|
|
31585
31756
|
{
|
|
31586
31757
|
endTimeNano: selectedEvent.end_time_unix_nano ?? selectedEvent.start_time_unix_nano,
|
|
@@ -31597,39 +31768,39 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31597
31768
|
|
|
31598
31769
|
// src/components/trace-graph/trace-graph.tsx
|
|
31599
31770
|
var import_base = require("@xyflow/react/dist/base.css");
|
|
31600
|
-
var
|
|
31771
|
+
var import_material24 = require("@mui/material");
|
|
31601
31772
|
var import_react58 = require("@xyflow/react");
|
|
31602
31773
|
var import_react59 = require("react");
|
|
31603
31774
|
|
|
31604
31775
|
// src/components/trace-graph/service-node.tsx
|
|
31605
|
-
var
|
|
31606
|
-
var
|
|
31776
|
+
var import_icons_material13 = require("@mui/icons-material");
|
|
31777
|
+
var import_material21 = require("@mui/material");
|
|
31607
31778
|
var import_react52 = require("@xyflow/react");
|
|
31608
31779
|
var import_style = require("@xyflow/react/dist/style.css");
|
|
31609
31780
|
var React123 = require("react");
|
|
31610
31781
|
var import_react53 = require("react");
|
|
31611
|
-
var
|
|
31782
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
31612
31783
|
var handleStyle = {
|
|
31613
31784
|
backgroundColor: "white",
|
|
31614
31785
|
borderColor: "lightgray",
|
|
31615
31786
|
opacity: 0
|
|
31616
31787
|
};
|
|
31617
31788
|
var NodeContent = ({ event, expanded, issues }) => {
|
|
31618
|
-
const theme = (0,
|
|
31619
|
-
return /* @__PURE__ */ (0,
|
|
31620
|
-
/* @__PURE__ */ (0,
|
|
31621
|
-
/* @__PURE__ */ (0,
|
|
31622
|
-
/* @__PURE__ */ (0,
|
|
31623
|
-
|
|
31789
|
+
const theme = (0, import_material21.useTheme)();
|
|
31790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_jsx_runtime144.Fragment, { children: [
|
|
31791
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_react52.Handle, { position: import_react52.Position.Left, style: handleStyle, type: "target" }),
|
|
31792
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_react52.Handle, { position: import_react52.Position.Right, style: handleStyle, type: "source" }),
|
|
31793
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
31794
|
+
import_material21.Stack,
|
|
31624
31795
|
{
|
|
31625
31796
|
alignItems: "center",
|
|
31626
31797
|
direction: "row",
|
|
31627
31798
|
sx: { gap: "8px", pb: "2px", pt: "6px", px: "8px" },
|
|
31628
31799
|
children: [
|
|
31629
|
-
/* @__PURE__ */ (0,
|
|
31630
|
-
/* @__PURE__ */ (0,
|
|
31631
|
-
/* @__PURE__ */ (0,
|
|
31632
|
-
|
|
31800
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
|
|
31801
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_material21.Stack, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
|
|
31802
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
31803
|
+
import_material21.Typography,
|
|
31633
31804
|
{
|
|
31634
31805
|
noWrap: !expanded,
|
|
31635
31806
|
sx: { fontWeight: 700, lineHeight: 1.25, ...expanded && { whiteSpace: "nowrap" } },
|
|
@@ -31637,8 +31808,8 @@ var NodeContent = ({ event, expanded, issues }) => {
|
|
|
31637
31808
|
children: getServiceDisplayName(event.service_name)
|
|
31638
31809
|
}
|
|
31639
31810
|
),
|
|
31640
|
-
event.resource_name != "" && /* @__PURE__ */ (0,
|
|
31641
|
-
|
|
31811
|
+
event.resource_name != "" && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
31812
|
+
import_material21.Typography,
|
|
31642
31813
|
{
|
|
31643
31814
|
color: "text.secondary",
|
|
31644
31815
|
noWrap: !expanded,
|
|
@@ -31651,16 +31822,16 @@ var NodeContent = ({ event, expanded, issues }) => {
|
|
|
31651
31822
|
]
|
|
31652
31823
|
}
|
|
31653
31824
|
),
|
|
31654
|
-
/* @__PURE__ */ (0,
|
|
31655
|
-
/* @__PURE__ */ (0,
|
|
31656
|
-
|
|
31825
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Divider, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
|
|
31826
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
31827
|
+
import_material21.Stack,
|
|
31657
31828
|
{
|
|
31658
31829
|
alignItems: "center",
|
|
31659
31830
|
direction: "row",
|
|
31660
31831
|
sx: expanded ? { pb: "5px", pr: "8px", pt: "1px" } : { minWidth: 0, pb: "5px", pr: "8px", pt: "1px" },
|
|
31661
31832
|
children: [
|
|
31662
|
-
/* @__PURE__ */ (0,
|
|
31663
|
-
|
|
31833
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
31834
|
+
import_material21.Box,
|
|
31664
31835
|
{
|
|
31665
31836
|
sx: {
|
|
31666
31837
|
alignItems: "center",
|
|
@@ -31670,13 +31841,13 @@ var NodeContent = ({ event, expanded, issues }) => {
|
|
|
31670
31841
|
width: "38px"
|
|
31671
31842
|
},
|
|
31672
31843
|
children: [
|
|
31673
|
-
issues.error && /* @__PURE__ */ (0,
|
|
31674
|
-
issues.warning && /* @__PURE__ */ (0,
|
|
31844
|
+
issues.error && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Tooltip, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.Cancel, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
|
|
31845
|
+
issues.warning && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Tooltip, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.GppMaybe, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
|
|
31675
31846
|
]
|
|
31676
31847
|
}
|
|
31677
31848
|
),
|
|
31678
|
-
/* @__PURE__ */ (0,
|
|
31679
|
-
|
|
31849
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
31850
|
+
import_material21.Typography,
|
|
31680
31851
|
{
|
|
31681
31852
|
"data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID,
|
|
31682
31853
|
noWrap: !expanded,
|
|
@@ -31691,7 +31862,7 @@ var NodeContent = ({ event, expanded, issues }) => {
|
|
|
31691
31862
|
] });
|
|
31692
31863
|
};
|
|
31693
31864
|
var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
|
|
31694
|
-
const theme = (0,
|
|
31865
|
+
const theme = (0, import_material21.useTheme)();
|
|
31695
31866
|
const [isHovered, setIsHovered] = (0, import_react53.useState)(false);
|
|
31696
31867
|
const nodeRef = (0, import_react53.useRef)(null);
|
|
31697
31868
|
const issues = getSpanIssues(data.event);
|
|
@@ -31721,8 +31892,8 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
|
|
|
31721
31892
|
const xyNode = nodeRef.current?.closest(".react-flow__node");
|
|
31722
31893
|
if (xyNode) xyNode.style.zIndex = "";
|
|
31723
31894
|
};
|
|
31724
|
-
return /* @__PURE__ */ (0,
|
|
31725
|
-
|
|
31895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
31896
|
+
import_material21.Box,
|
|
31726
31897
|
{
|
|
31727
31898
|
"data-testid": SERVICE_NODE_TEST_ID,
|
|
31728
31899
|
onMouseEnter: handleMouseEnter,
|
|
@@ -31732,8 +31903,8 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
|
|
|
31732
31903
|
sx: { display: "inline-block", position: "relative" },
|
|
31733
31904
|
tabIndex: 0,
|
|
31734
31905
|
children: [
|
|
31735
|
-
/* @__PURE__ */ (0,
|
|
31736
|
-
|
|
31906
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
31907
|
+
import_material21.Box,
|
|
31737
31908
|
{
|
|
31738
31909
|
sx: {
|
|
31739
31910
|
...sharedBoxSx,
|
|
@@ -31741,11 +31912,11 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
|
|
|
31741
31912
|
maxWidth: 220,
|
|
31742
31913
|
overflow: "hidden"
|
|
31743
31914
|
},
|
|
31744
|
-
children: /* @__PURE__ */ (0,
|
|
31915
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(NodeContent, { ...contentProps, expanded: false })
|
|
31745
31916
|
}
|
|
31746
31917
|
),
|
|
31747
|
-
/* @__PURE__ */ (0,
|
|
31748
|
-
|
|
31918
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
31919
|
+
import_material21.Box,
|
|
31749
31920
|
{
|
|
31750
31921
|
onMouseLeave: handleMouseLeave,
|
|
31751
31922
|
sx: {
|
|
@@ -31759,7 +31930,7 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
|
|
|
31759
31930
|
width: "max-content",
|
|
31760
31931
|
zIndex: 10
|
|
31761
31932
|
},
|
|
31762
|
-
children: /* @__PURE__ */ (0,
|
|
31933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(NodeContent, { ...contentProps, expanded: true })
|
|
31763
31934
|
}
|
|
31764
31935
|
)
|
|
31765
31936
|
]
|
|
@@ -31853,12 +32024,12 @@ var getLayoutedNodesAndEdges = (inputNodes, inputEdges) => {
|
|
|
31853
32024
|
};
|
|
31854
32025
|
|
|
31855
32026
|
// src/components/trace-graph/xyflow/controls.tsx
|
|
31856
|
-
var
|
|
31857
|
-
var
|
|
32027
|
+
var import_icons_material14 = require("@mui/icons-material");
|
|
32028
|
+
var import_material22 = require("@mui/material");
|
|
31858
32029
|
var import_react54 = require("@xyflow/react");
|
|
31859
32030
|
var import_react55 = require("react");
|
|
31860
32031
|
var import_shallow = require("zustand/shallow");
|
|
31861
|
-
var
|
|
32032
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
31862
32033
|
var selector = (s) => ({
|
|
31863
32034
|
isInteractive: s.nodesDraggable || s.nodesConnectable || s.elementsSelectable,
|
|
31864
32035
|
maxZoomReached: s.transform[2] >= s.maxZoom,
|
|
@@ -31876,8 +32047,8 @@ var Controls = (0, import_react55.memo)(() => {
|
|
|
31876
32047
|
const onFitViewHandler = () => {
|
|
31877
32048
|
void fitView();
|
|
31878
32049
|
};
|
|
31879
|
-
return /* @__PURE__ */ (0,
|
|
31880
|
-
|
|
32050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
|
|
32051
|
+
import_material22.Box,
|
|
31881
32052
|
{
|
|
31882
32053
|
sx: {
|
|
31883
32054
|
bottom: 0,
|
|
@@ -31890,33 +32061,33 @@ var Controls = (0, import_react55.memo)(() => {
|
|
|
31890
32061
|
zIndex: 5
|
|
31891
32062
|
},
|
|
31892
32063
|
children: [
|
|
31893
|
-
/* @__PURE__ */ (0,
|
|
31894
|
-
|
|
32064
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
32065
|
+
import_material22.IconButton,
|
|
31895
32066
|
{
|
|
31896
32067
|
className: "react-flow__controls-zoomin",
|
|
31897
32068
|
disabled: maxZoomReached,
|
|
31898
32069
|
onClick: onZoomInHandler,
|
|
31899
32070
|
size: "small",
|
|
31900
|
-
children: /* @__PURE__ */ (0,
|
|
32071
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.Add, {})
|
|
31901
32072
|
}
|
|
31902
32073
|
),
|
|
31903
|
-
/* @__PURE__ */ (0,
|
|
31904
|
-
|
|
32074
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
32075
|
+
import_material22.IconButton,
|
|
31905
32076
|
{
|
|
31906
32077
|
className: "react-flow__controls-zoomout",
|
|
31907
32078
|
disabled: minZoomReached,
|
|
31908
32079
|
onClick: onZoomOutHandler,
|
|
31909
32080
|
size: "small",
|
|
31910
|
-
children: /* @__PURE__ */ (0,
|
|
32081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.Remove, {})
|
|
31911
32082
|
}
|
|
31912
32083
|
),
|
|
31913
|
-
/* @__PURE__ */ (0,
|
|
31914
|
-
|
|
32084
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
32085
|
+
import_material22.IconButton,
|
|
31915
32086
|
{
|
|
31916
32087
|
className: "react-flow__controls-fitview",
|
|
31917
32088
|
onClick: onFitViewHandler,
|
|
31918
32089
|
size: "small",
|
|
31919
|
-
children: /* @__PURE__ */ (0,
|
|
32090
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.FitScreen, {})
|
|
31920
32091
|
}
|
|
31921
32092
|
)
|
|
31922
32093
|
]
|
|
@@ -31925,10 +32096,10 @@ var Controls = (0, import_react55.memo)(() => {
|
|
|
31925
32096
|
});
|
|
31926
32097
|
|
|
31927
32098
|
// src/components/trace-graph/xyflow/minimap-node.tsx
|
|
31928
|
-
var
|
|
32099
|
+
var import_material23 = require("@mui/material");
|
|
31929
32100
|
var import_react56 = require("@xyflow/react");
|
|
31930
32101
|
var import_react57 = require("react");
|
|
31931
|
-
var
|
|
32102
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
31932
32103
|
var ICON_FRACTION = 0.35;
|
|
31933
32104
|
var PADDING_FRACTION = 0.18;
|
|
31934
32105
|
var ICON_NATIVE_SIZE = 80;
|
|
@@ -31941,7 +32112,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
|
|
|
31941
32112
|
x,
|
|
31942
32113
|
y
|
|
31943
32114
|
}) => {
|
|
31944
|
-
const theme = (0,
|
|
32115
|
+
const theme = (0, import_material23.useTheme)();
|
|
31945
32116
|
const node = (0, import_react56.useStore)((s) => s.nodeLookup.get(id2));
|
|
31946
32117
|
const event = node?.data.event;
|
|
31947
32118
|
const serviceName = event?.service_name;
|
|
@@ -31957,10 +32128,10 @@ var MinimapServiceNode = (0, import_react57.memo)(({
|
|
|
31957
32128
|
const dotY = y + height - padding - dotRadius;
|
|
31958
32129
|
const outlineColor = selected ? isError ? errorColor : "#1a73e8" : "#cccccc";
|
|
31959
32130
|
const outlineWidth = selected ? 2 : 1;
|
|
31960
|
-
return /* @__PURE__ */ (0,
|
|
32131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("g", { onClick: onClick ? (event2) => {
|
|
31961
32132
|
onClick(event2, id2);
|
|
31962
32133
|
} : void 0, children: [
|
|
31963
|
-
/* @__PURE__ */ (0,
|
|
32134
|
+
/* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31964
32135
|
"rect",
|
|
31965
32136
|
{
|
|
31966
32137
|
fill: theme.palette.background.paper,
|
|
@@ -31974,7 +32145,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
|
|
|
31974
32145
|
y
|
|
31975
32146
|
}
|
|
31976
32147
|
),
|
|
31977
|
-
isError && /* @__PURE__ */ (0,
|
|
32148
|
+
isError && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31978
32149
|
"rect",
|
|
31979
32150
|
{
|
|
31980
32151
|
fill: errorColor,
|
|
@@ -31986,8 +32157,8 @@ var MinimapServiceNode = (0, import_react57.memo)(({
|
|
|
31986
32157
|
y: y + 3
|
|
31987
32158
|
}
|
|
31988
32159
|
),
|
|
31989
|
-
Icon && /* @__PURE__ */ (0,
|
|
31990
|
-
isError && Icon && /* @__PURE__ */ (0,
|
|
32160
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
|
|
32161
|
+
isError && Icon && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31991
32162
|
"circle",
|
|
31992
32163
|
{
|
|
31993
32164
|
cx: dotX,
|
|
@@ -32000,7 +32171,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
|
|
|
32000
32171
|
});
|
|
32001
32172
|
|
|
32002
32173
|
// src/components/trace-graph/trace-graph.tsx
|
|
32003
|
-
var
|
|
32174
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
32004
32175
|
var nodeTypes = {
|
|
32005
32176
|
service: ServiceNode
|
|
32006
32177
|
};
|
|
@@ -32111,12 +32282,12 @@ var TraceGraph = ({
|
|
|
32111
32282
|
updateExtent();
|
|
32112
32283
|
}
|
|
32113
32284
|
}, [spans.data, initialFocusEventId, setNodes, setEdges, updateExtent]);
|
|
32114
|
-
const theme = (0,
|
|
32115
|
-
return /* @__PURE__ */ (0,
|
|
32116
|
-
spans.error && /* @__PURE__ */ (0,
|
|
32117
|
-
|
|
32285
|
+
const theme = (0, import_material24.useTheme)();
|
|
32286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, { children: [
|
|
32287
|
+
spans.error && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
|
|
32288
|
+
import_material24.Alert,
|
|
32118
32289
|
{
|
|
32119
|
-
action: /* @__PURE__ */ (0,
|
|
32290
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Button, { onClick: () => {
|
|
32120
32291
|
onRefresh();
|
|
32121
32292
|
}, children: "Retry" }),
|
|
32122
32293
|
severity: "error",
|
|
@@ -32128,7 +32299,7 @@ var TraceGraph = ({
|
|
|
32128
32299
|
]
|
|
32129
32300
|
}
|
|
32130
32301
|
),
|
|
32131
|
-
/* @__PURE__ */ (0,
|
|
32302
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
|
|
32132
32303
|
import_react58.ReactFlow,
|
|
32133
32304
|
{
|
|
32134
32305
|
colorMode: theme.palette.mode,
|
|
@@ -32148,9 +32319,9 @@ var TraceGraph = ({
|
|
|
32148
32319
|
selectNodesOnDrag: false,
|
|
32149
32320
|
translateExtent,
|
|
32150
32321
|
children: [
|
|
32151
|
-
/* @__PURE__ */ (0,
|
|
32152
|
-
/* @__PURE__ */ (0,
|
|
32153
|
-
!hideMiniMap && /* @__PURE__ */ (0,
|
|
32322
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
|
|
32323
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Controls, {}),
|
|
32324
|
+
!hideMiniMap && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
32154
32325
|
import_react58.MiniMap,
|
|
32155
32326
|
{
|
|
32156
32327
|
nodeComponent: MinimapServiceNode,
|
|
@@ -32158,7 +32329,7 @@ var TraceGraph = ({
|
|
|
32158
32329
|
zoomable: true
|
|
32159
32330
|
}
|
|
32160
32331
|
),
|
|
32161
|
-
/* @__PURE__ */ (0,
|
|
32332
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
32162
32333
|
import_react58.Background,
|
|
32163
32334
|
{
|
|
32164
32335
|
bgColor: theme.palette.background.default,
|
|
@@ -32217,8 +32388,8 @@ function useLocalStorage(key, initialValue) {
|
|
|
32217
32388
|
}
|
|
32218
32389
|
|
|
32219
32390
|
// src/components/trace-panel/waterfall.tsx
|
|
32220
|
-
var
|
|
32221
|
-
var
|
|
32391
|
+
var import_icons_material15 = require("@mui/icons-material");
|
|
32392
|
+
var import_material25 = require("@mui/material");
|
|
32222
32393
|
var import_styles4 = require("@mui/material/styles");
|
|
32223
32394
|
var React124 = __toESM(require("react"), 1);
|
|
32224
32395
|
|
|
@@ -32235,7 +32406,7 @@ var getAxisTicks = (durationMs, maxIntervals) => {
|
|
|
32235
32406
|
var MIN_TICK_SPACING_PX = 56;
|
|
32236
32407
|
var LABEL_GAP_PX = 8;
|
|
32237
32408
|
var CHAR_WIDTH_PX = 6;
|
|
32238
|
-
var estimateWidth = (
|
|
32409
|
+
var estimateWidth = (text3) => text3.length * CHAR_WIDTH_PX;
|
|
32239
32410
|
var layoutAxis = (durationMs, width) => {
|
|
32240
32411
|
if (width <= 0) return { labels: [], marks: [] };
|
|
32241
32412
|
const start = { align: "start", text: formatDuration(0), x: 0 };
|
|
@@ -32250,10 +32421,10 @@ var layoutAxis = (durationMs, width) => {
|
|
|
32250
32421
|
if (tick <= 0 || tick >= durationMs) continue;
|
|
32251
32422
|
const x = tick / durationMs * width;
|
|
32252
32423
|
marks.push(x);
|
|
32253
|
-
const
|
|
32254
|
-
const half = estimateWidth(
|
|
32424
|
+
const text3 = formatDuration(tick);
|
|
32425
|
+
const half = estimateWidth(text3) / 2;
|
|
32255
32426
|
if (x - half >= previousRight + LABEL_GAP_PX && x + half <= endLeft) {
|
|
32256
|
-
labels.push({ align: "center", text:
|
|
32427
|
+
labels.push({ align: "center", text: text3, x });
|
|
32257
32428
|
previousRight = x + half;
|
|
32258
32429
|
}
|
|
32259
32430
|
}
|
|
@@ -32261,7 +32432,7 @@ var layoutAxis = (durationMs, width) => {
|
|
|
32261
32432
|
};
|
|
32262
32433
|
|
|
32263
32434
|
// src/components/trace-panel/waterfall.tsx
|
|
32264
|
-
var
|
|
32435
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
32265
32436
|
var SERVICE_COLORS = {
|
|
32266
32437
|
apigateway: "#7048E8",
|
|
32267
32438
|
dynamodb: "#3B5BDB",
|
|
@@ -32299,12 +32470,12 @@ var flatten = (nodes2, collapsed, depth = 0, branches = [], parent) => nodes2.fl
|
|
|
32299
32470
|
];
|
|
32300
32471
|
});
|
|
32301
32472
|
var flattenAll = (nodes2) => flatten(nodes2, /* @__PURE__ */ new Set()).map((row) => ({ ...row, branches: [], depth: 0, last: true })).toSorted((left, right) => compareNano(left.node.span.start_time_unix_nano, right.node.span.start_time_unix_nano));
|
|
32302
|
-
var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ (0,
|
|
32303
|
-
error && /* @__PURE__ */ (0,
|
|
32304
|
-
warning2 && /* @__PURE__ */ (0,
|
|
32473
|
+
var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
|
|
32474
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.Cancel, { sx: { color: "error.main", fontSize: 14 } }),
|
|
32475
|
+
warning2 && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.GppMaybe, { sx: { color: "warning.main", fontSize: 14 } })
|
|
32305
32476
|
] });
|
|
32306
|
-
var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ (0,
|
|
32307
|
-
|
|
32477
|
+
var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
32478
|
+
import_material25.Box,
|
|
32308
32479
|
{
|
|
32309
32480
|
"aria-hidden": "true",
|
|
32310
32481
|
sx: { backgroundColor: "divider", height: height === void 0 ? `calc(100% - ${String(top)}px)` : `${String(height)}px`, left: `${String(left)}px`, pointerEvents: "none", position: "absolute", top: `${String(top)}px`, width: `${String(width)}px` }
|
|
@@ -32332,8 +32503,8 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
|
|
|
32332
32503
|
const trackRef = React124.useRef(null);
|
|
32333
32504
|
const width = useWidth(trackRef);
|
|
32334
32505
|
const { labels, marks } = layoutAxis(durationMs, width);
|
|
32335
|
-
return /* @__PURE__ */ (0,
|
|
32336
|
-
|
|
32506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
|
|
32507
|
+
import_material25.Box,
|
|
32337
32508
|
{
|
|
32338
32509
|
"data-testid": WATERFALL_AXIS_TEST_ID,
|
|
32339
32510
|
sx: {
|
|
@@ -32348,8 +32519,8 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
|
|
|
32348
32519
|
zIndex: 1
|
|
32349
32520
|
},
|
|
32350
32521
|
children: [
|
|
32351
|
-
/* @__PURE__ */ (0,
|
|
32352
|
-
|
|
32522
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
|
|
32523
|
+
import_material25.ToggleButtonGroup,
|
|
32353
32524
|
{
|
|
32354
32525
|
"aria-label": "Operations layout",
|
|
32355
32526
|
exclusive: true,
|
|
@@ -32360,21 +32531,21 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
|
|
|
32360
32531
|
sx: { "& .MuiToggleButton-root": { fontSize: 11, gap: "3px", height: 18, lineHeight: 1, px: "6px", py: 0, textTransform: "none" } },
|
|
32361
32532
|
value: flat ? "list" : "tree",
|
|
32362
32533
|
children: [
|
|
32363
|
-
/* @__PURE__ */ (0,
|
|
32364
|
-
/* @__PURE__ */ (0,
|
|
32534
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.ToggleButton, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
|
|
32535
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.AccountTreeOutlined, { sx: { fontSize: 13 } }),
|
|
32365
32536
|
"Tree"
|
|
32366
32537
|
] }),
|
|
32367
|
-
/* @__PURE__ */ (0,
|
|
32368
|
-
/* @__PURE__ */ (0,
|
|
32538
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.ToggleButton, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
|
|
32539
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.FormatListBulleted, { sx: { fontSize: 13 } }),
|
|
32369
32540
|
"List"
|
|
32370
32541
|
] })
|
|
32371
32542
|
]
|
|
32372
32543
|
}
|
|
32373
32544
|
) }),
|
|
32374
|
-
/* @__PURE__ */ (0,
|
|
32375
|
-
marks.map((x) => /* @__PURE__ */ (0,
|
|
32376
|
-
labels.map((label) => /* @__PURE__ */ (0,
|
|
32377
|
-
|
|
32545
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
|
|
32546
|
+
marks.map((x) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
|
|
32547
|
+
labels.map((label) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
32548
|
+
import_material25.Typography,
|
|
32378
32549
|
{
|
|
32379
32550
|
color: "text.secondary",
|
|
32380
32551
|
component: "span",
|
|
@@ -32439,11 +32610,11 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32439
32610
|
else if (event.key === "ArrowLeft" && !flat && node.children.length > 0) setExpanded(spanId, false);
|
|
32440
32611
|
};
|
|
32441
32612
|
if (spans.length === 0) {
|
|
32442
|
-
return /* @__PURE__ */ (0,
|
|
32613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
|
|
32443
32614
|
}
|
|
32444
32615
|
const percentAt = (nano) => bounds.durationMs > 0 ? Number(BigInt(nano) - bounds.startNano) / 1e6 / bounds.durationMs * 100 : 0;
|
|
32445
|
-
return /* @__PURE__ */ (0,
|
|
32446
|
-
/* @__PURE__ */ (0,
|
|
32616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
|
|
32617
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(WaterfallAxis, { durationMs: bounds.durationMs, flat, gridColumns: gridColumns(statusIconsFirst), onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
|
|
32447
32618
|
rows.map(({ branches, depth, last, node, parent }) => {
|
|
32448
32619
|
const { span } = node;
|
|
32449
32620
|
const issues = getSpanIssues(span);
|
|
@@ -32461,8 +32632,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32461
32632
|
const label = formatDuration(durationMs);
|
|
32462
32633
|
const resource = shortResourceName(span.resource_name, span.arn);
|
|
32463
32634
|
const serviceColor = getServiceColor(span.service_name);
|
|
32464
|
-
return /* @__PURE__ */ (0,
|
|
32465
|
-
|
|
32635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
|
|
32636
|
+
import_material25.Box,
|
|
32466
32637
|
{
|
|
32467
32638
|
"aria-expanded": hasChildren ? !isCollapsed : void 0,
|
|
32468
32639
|
"aria-level": depth + 1,
|
|
@@ -32500,10 +32671,10 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32500
32671
|
"scrollMarginTop": AXIS_HEIGHT
|
|
32501
32672
|
}),
|
|
32502
32673
|
children: [
|
|
32503
|
-
/* @__PURE__ */ (0,
|
|
32504
|
-
statusIconsFirst && /* @__PURE__ */ (0,
|
|
32505
|
-
/* @__PURE__ */ (0,
|
|
32506
|
-
|
|
32674
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
|
|
32675
|
+
statusIconsFirst && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) }),
|
|
32676
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
|
|
32677
|
+
import_material25.Typography,
|
|
32507
32678
|
{
|
|
32508
32679
|
color: "text.secondary",
|
|
32509
32680
|
component: "span",
|
|
@@ -32512,21 +32683,21 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32512
32683
|
sx: { display: "flex", flex: 1, fontSize: 11, fontVariantNumeric: "tabular-nums", lineHeight: `${String(ROW_HEIGHT)}px` },
|
|
32513
32684
|
title: "Since the first operation of the trace",
|
|
32514
32685
|
children: [
|
|
32515
|
-
/* @__PURE__ */ (0,
|
|
32516
|
-
/* @__PURE__ */ (0,
|
|
32686
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
|
|
32687
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
|
|
32517
32688
|
]
|
|
32518
32689
|
}
|
|
32519
32690
|
)
|
|
32520
32691
|
] }),
|
|
32521
|
-
/* @__PURE__ */ (0,
|
|
32522
|
-
branches.map((runs, level) => runs && /* @__PURE__ */ (0,
|
|
32523
|
-
depth > 0 && /* @__PURE__ */ (0,
|
|
32524
|
-
/* @__PURE__ */ (0,
|
|
32525
|
-
/* @__PURE__ */ (0,
|
|
32692
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
|
|
32693
|
+
branches.map((runs, level) => runs && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { left: lineX(level) }, level)),
|
|
32694
|
+
depth > 0 && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
|
|
32695
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
|
|
32696
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
|
|
32526
32697
|
] }),
|
|
32527
|
-
hasChildren && !isCollapsed && /* @__PURE__ */ (0,
|
|
32528
|
-
hasChildren ? /* @__PURE__ */ (0,
|
|
32529
|
-
|
|
32698
|
+
hasChildren && !isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { left: lineX(depth), top: 19 }),
|
|
32699
|
+
hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
32700
|
+
import_material25.ButtonBase,
|
|
32530
32701
|
{
|
|
32531
32702
|
"aria-label": isCollapsed ? "Expand" : "Collapse",
|
|
32532
32703
|
"data-testid": WATERFALL_ROW_TOGGLE_TEST_ID,
|
|
@@ -32545,18 +32716,18 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32545
32716
|
"width": 14
|
|
32546
32717
|
}),
|
|
32547
32718
|
tabIndex: -1,
|
|
32548
|
-
children: isCollapsed ? /* @__PURE__ */ (0,
|
|
32719
|
+
children: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.KeyboardArrowRight, { sx: { fontSize: 16 } }) : /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.KeyboardArrowDown, { sx: { fontSize: 16 } })
|
|
32549
32720
|
}
|
|
32550
|
-
) : !flat && /* @__PURE__ */ (0,
|
|
32551
|
-
/* @__PURE__ */ (0,
|
|
32552
|
-
/* @__PURE__ */ (0,
|
|
32553
|
-
resource !== "" && resource !== "*" && /* @__PURE__ */ (0,
|
|
32554
|
-
!statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ (0,
|
|
32721
|
+
) : !flat && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { flex: "none", width: 14 } }),
|
|
32722
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
|
|
32723
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, title: span.operation_name, children: span.operation_name }),
|
|
32724
|
+
resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource }),
|
|
32725
|
+
!statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "inline-flex", flex: "none", ml: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) })
|
|
32555
32726
|
] }),
|
|
32556
|
-
/* @__PURE__ */ (0,
|
|
32557
|
-
parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ (0,
|
|
32558
|
-
/* @__PURE__ */ (0,
|
|
32559
|
-
|
|
32727
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
|
|
32728
|
+
parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
|
|
32729
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
32730
|
+
import_material25.Box,
|
|
32560
32731
|
{
|
|
32561
32732
|
sx: (theme) => ({
|
|
32562
32733
|
background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${(0, import_styles4.alpha)(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
|
|
@@ -32570,8 +32741,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32570
32741
|
})
|
|
32571
32742
|
}
|
|
32572
32743
|
),
|
|
32573
|
-
/* @__PURE__ */ (0,
|
|
32574
|
-
|
|
32744
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
32745
|
+
import_material25.Typography,
|
|
32575
32746
|
{
|
|
32576
32747
|
color: placement === "inside" ? "#fff" : "text.secondary",
|
|
32577
32748
|
component: "span",
|
|
@@ -32600,7 +32771,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
|
|
|
32600
32771
|
};
|
|
32601
32772
|
|
|
32602
32773
|
// src/components/trace-panel/trace-sidebar.tsx
|
|
32603
|
-
var
|
|
32774
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
32604
32775
|
var DEFAULT_WIDTH = 560;
|
|
32605
32776
|
var MIN_WIDTH = 360;
|
|
32606
32777
|
var MAX_WIDTH_SHARE = 0.8;
|
|
@@ -32669,8 +32840,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32669
32840
|
};
|
|
32670
32841
|
}, [spans, selectedSpanId]);
|
|
32671
32842
|
const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
|
|
32672
|
-
return /* @__PURE__ */ (0,
|
|
32673
|
-
|
|
32843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
32844
|
+
import_material26.Box,
|
|
32674
32845
|
{
|
|
32675
32846
|
"data-testid": TRACE_SIDEBAR_TEST_ID,
|
|
32676
32847
|
ref: sidebarRef,
|
|
@@ -32692,8 +32863,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32692
32863
|
width: storedWidth
|
|
32693
32864
|
},
|
|
32694
32865
|
children: [
|
|
32695
|
-
/* @__PURE__ */ (0,
|
|
32696
|
-
|
|
32866
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
32867
|
+
import_material26.Box,
|
|
32697
32868
|
{
|
|
32698
32869
|
"aria-label": "Resize the sidebar",
|
|
32699
32870
|
"aria-orientation": "vertical",
|
|
@@ -32720,23 +32891,23 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32720
32891
|
tabIndex: 0
|
|
32721
32892
|
}
|
|
32722
32893
|
),
|
|
32723
|
-
/* @__PURE__ */ (0,
|
|
32724
|
-
/* @__PURE__ */ (0,
|
|
32725
|
-
/* @__PURE__ */ (0,
|
|
32726
|
-
root2 && /* @__PURE__ */ (0,
|
|
32727
|
-
/* @__PURE__ */ (0,
|
|
32728
|
-
/* @__PURE__ */ (0,
|
|
32729
|
-
rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ (0,
|
|
32894
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
|
|
32895
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
32896
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: requestTerms === "on" ? "Request" : "Trace root" }),
|
|
32897
|
+
root2 && /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
32898
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
|
|
32899
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
|
|
32900
|
+
rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
|
|
32730
32901
|
] }),
|
|
32731
|
-
/* @__PURE__ */ (0,
|
|
32902
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", variant: "caption", children: [
|
|
32732
32903
|
formatDuration(stats.durationMs),
|
|
32733
32904
|
pluralize(spans.length, "op"),
|
|
32734
32905
|
...stats.errors > 0 ? [pluralize(stats.errors, "error")] : [],
|
|
32735
32906
|
...stats.warnings > 0 ? [pluralize(stats.warnings, "warning")] : []
|
|
32736
32907
|
].join(" \xB7 ") })
|
|
32737
32908
|
] }),
|
|
32738
|
-
/* @__PURE__ */ (0,
|
|
32739
|
-
|
|
32909
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
32910
|
+
import_material26.ToggleButtonGroup,
|
|
32740
32911
|
{
|
|
32741
32912
|
"aria-label": "Trace view",
|
|
32742
32913
|
exclusive: true,
|
|
@@ -32746,14 +32917,14 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32746
32917
|
size: "small",
|
|
32747
32918
|
value: view,
|
|
32748
32919
|
children: [
|
|
32749
|
-
/* @__PURE__ */ (0,
|
|
32750
|
-
/* @__PURE__ */ (0,
|
|
32920
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.ToggleButton, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" }),
|
|
32921
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.ToggleButton, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" })
|
|
32751
32922
|
]
|
|
32752
32923
|
}
|
|
32753
32924
|
),
|
|
32754
|
-
/* @__PURE__ */ (0,
|
|
32925
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.IconButton, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_icons_material16.Close, {}) })
|
|
32755
32926
|
] }),
|
|
32756
|
-
/* @__PURE__ */ (0,
|
|
32927
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_react61.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
32757
32928
|
TraceGraph,
|
|
32758
32929
|
{
|
|
32759
32930
|
hideMiniMap: true,
|
|
@@ -32763,8 +32934,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32763
32934
|
spans: { data: spans, error: void 0, loading: false }
|
|
32764
32935
|
}
|
|
32765
32936
|
) }) }) }),
|
|
32766
|
-
/* @__PURE__ */ (0,
|
|
32767
|
-
|
|
32937
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
32938
|
+
import_material26.Box,
|
|
32768
32939
|
{
|
|
32769
32940
|
"aria-label": "Resize the operation details",
|
|
32770
32941
|
"aria-orientation": "horizontal",
|
|
@@ -32792,18 +32963,18 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32792
32963
|
tabIndex: 0
|
|
32793
32964
|
}
|
|
32794
32965
|
) }),
|
|
32795
|
-
/* @__PURE__ */ (0,
|
|
32966
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(EventDetails, { selectedEvent: selectedSpan }) : /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
|
|
32796
32967
|
]
|
|
32797
32968
|
}
|
|
32798
32969
|
);
|
|
32799
32970
|
};
|
|
32800
32971
|
|
|
32801
32972
|
// src/components/worker-error-message/worker-error-message.tsx
|
|
32802
|
-
var
|
|
32803
|
-
var
|
|
32804
|
-
var
|
|
32805
|
-
var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0,
|
|
32806
|
-
|
|
32973
|
+
var import_icons_material17 = require("@mui/icons-material");
|
|
32974
|
+
var import_material27 = require("@mui/material");
|
|
32975
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
32976
|
+
var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
32977
|
+
import_material27.Box,
|
|
32807
32978
|
{
|
|
32808
32979
|
sx: {
|
|
32809
32980
|
alignItems: "center",
|
|
@@ -32813,18 +32984,18 @@ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0, import_jsx_
|
|
|
32813
32984
|
justifyContent: "center",
|
|
32814
32985
|
p: 4
|
|
32815
32986
|
},
|
|
32816
|
-
children: /* @__PURE__ */ (0,
|
|
32817
|
-
|
|
32987
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
|
|
32988
|
+
import_material27.Alert,
|
|
32818
32989
|
{
|
|
32819
|
-
icon: /* @__PURE__ */ (0,
|
|
32990
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_icons_material17.ErrorOutline, { fontSize: "large" }),
|
|
32820
32991
|
severity: "error",
|
|
32821
32992
|
sx: { maxWidth: 600, width: "100%" },
|
|
32822
32993
|
children: [
|
|
32823
|
-
/* @__PURE__ */ (0,
|
|
32824
|
-
/* @__PURE__ */ (0,
|
|
32825
|
-
/* @__PURE__ */ (0,
|
|
32826
|
-
onRetry && /* @__PURE__ */ (0,
|
|
32827
|
-
|
|
32994
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.AlertTitle, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
|
|
32995
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Typography, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
|
|
32996
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Typography, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
|
|
32997
|
+
onRetry && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Box, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
32998
|
+
import_material27.Button,
|
|
32828
32999
|
{
|
|
32829
33000
|
"aria-label": "Retry starting the spans filter worker",
|
|
32830
33001
|
onClick: onRetry,
|
|
@@ -33541,7 +33712,7 @@ var useSpans = () => {
|
|
|
33541
33712
|
};
|
|
33542
33713
|
|
|
33543
33714
|
// src/pages/spans-list-page.tsx
|
|
33544
|
-
var
|
|
33715
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
33545
33716
|
var SpansListPage = () => {
|
|
33546
33717
|
const api = useAppInspectorApi();
|
|
33547
33718
|
const {
|
|
@@ -33627,10 +33798,10 @@ var SpansListPage = () => {
|
|
|
33627
33798
|
switch (phase) {
|
|
33628
33799
|
case "CHECKING_STATUS":
|
|
33629
33800
|
case "CONNECTING_WS": {
|
|
33630
|
-
return /* @__PURE__ */ (0,
|
|
33801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(StatusMessage, { phase });
|
|
33631
33802
|
}
|
|
33632
33803
|
case "DISABLED": {
|
|
33633
|
-
return /* @__PURE__ */ (0,
|
|
33804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33634
33805
|
StatusMessage,
|
|
33635
33806
|
{
|
|
33636
33807
|
onEnable: handleEnable,
|
|
@@ -33639,7 +33810,7 @@ var SpansListPage = () => {
|
|
|
33639
33810
|
);
|
|
33640
33811
|
}
|
|
33641
33812
|
case "INCOMPATIBLE": {
|
|
33642
|
-
return /* @__PURE__ */ (0,
|
|
33813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33643
33814
|
StatusMessage,
|
|
33644
33815
|
{
|
|
33645
33816
|
localstackVersion,
|
|
@@ -33650,12 +33821,12 @@ var SpansListPage = () => {
|
|
|
33650
33821
|
}
|
|
33651
33822
|
case "LIVE": {
|
|
33652
33823
|
if (workerError) {
|
|
33653
|
-
return /* @__PURE__ */ (0,
|
|
33824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
|
|
33654
33825
|
}
|
|
33655
33826
|
break;
|
|
33656
33827
|
}
|
|
33657
33828
|
case "UNREACHABLE": {
|
|
33658
|
-
return /* @__PURE__ */ (0,
|
|
33829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33659
33830
|
StatusMessage,
|
|
33660
33831
|
{
|
|
33661
33832
|
onRetry: handleRetry,
|
|
@@ -33664,9 +33835,9 @@ var SpansListPage = () => {
|
|
|
33664
33835
|
);
|
|
33665
33836
|
}
|
|
33666
33837
|
}
|
|
33667
|
-
return /* @__PURE__ */ (0,
|
|
33668
|
-
/* @__PURE__ */ (0,
|
|
33669
|
-
|
|
33838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_material28.Paper, { square: true, sx: { ...NATIVE_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
|
|
33839
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(
|
|
33840
|
+
import_material28.Box,
|
|
33670
33841
|
{
|
|
33671
33842
|
"data-testid": SPANS_LIST_PAGE_TEST_ID,
|
|
33672
33843
|
sx: {
|
|
@@ -33677,7 +33848,7 @@ var SpansListPage = () => {
|
|
|
33677
33848
|
minWidth: 0
|
|
33678
33849
|
},
|
|
33679
33850
|
children: [
|
|
33680
|
-
/* @__PURE__ */ (0,
|
|
33851
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33681
33852
|
EmulatorVersionBanner,
|
|
33682
33853
|
{
|
|
33683
33854
|
compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
|
|
@@ -33687,7 +33858,7 @@ var SpansListPage = () => {
|
|
|
33687
33858
|
} : void 0
|
|
33688
33859
|
}
|
|
33689
33860
|
),
|
|
33690
|
-
/* @__PURE__ */ (0,
|
|
33861
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33691
33862
|
SpansList,
|
|
33692
33863
|
{
|
|
33693
33864
|
clearingSpans,
|
|
@@ -33714,7 +33885,7 @@ var SpansListPage = () => {
|
|
|
33714
33885
|
]
|
|
33715
33886
|
}
|
|
33716
33887
|
),
|
|
33717
|
-
selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ (0,
|
|
33888
|
+
selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
33718
33889
|
TraceSidebar,
|
|
33719
33890
|
{
|
|
33720
33891
|
onClose: closeSidebar,
|