@localstack/appinspector-ui 1.0.103 → 1.0.105
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 +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15898,15 +15898,15 @@ var buildSpansEndpoint = (request) => {
|
|
|
15898
15898
|
queryParameters.set("pagination_token", request.pagination_token);
|
|
15899
15899
|
}
|
|
15900
15900
|
for (const [key, value] of Object.entries(request)) {
|
|
15901
|
-
if (value !== void 0 && key !== "limit" && key !== "
|
|
15901
|
+
if (value !== void 0 && key !== "limit" && key !== "outgoing_link_span_ids" && key !== "incoming_link_span_ids" && key !== "pagination_token" && value !== null) {
|
|
15902
15902
|
queryParameters.set(key, String(value));
|
|
15903
15903
|
}
|
|
15904
15904
|
}
|
|
15905
|
-
if (request.
|
|
15906
|
-
queryParameters.set("
|
|
15905
|
+
if (request.outgoing_link_span_ids) {
|
|
15906
|
+
queryParameters.set("outgoing_link_span_ids", request.outgoing_link_span_ids.join(","));
|
|
15907
15907
|
}
|
|
15908
|
-
if (request.
|
|
15909
|
-
queryParameters.set("
|
|
15908
|
+
if (request.incoming_link_span_ids) {
|
|
15909
|
+
queryParameters.set("incoming_link_span_ids", request.incoming_link_span_ids.join(","));
|
|
15910
15910
|
}
|
|
15911
15911
|
const queryString = queryParameters.toString();
|
|
15912
15912
|
return queryString ? `${API_ENDPOINTS.SPANS}?${queryString}` : API_ENDPOINTS.SPANS;
|
|
@@ -30479,7 +30479,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
30479
30479
|
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_SERVICE_NAME_TEST_ID, variant: "body2", children: selectedEvent.service_name })
|
|
30480
30480
|
] }),
|
|
30481
30481
|
/* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30482
|
-
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "
|
|
30482
|
+
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Action" }),
|
|
30483
30483
|
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_OPERATION_NAME_TEST_ID, variant: "body2", children: selectedEvent.operation_name })
|
|
30484
30484
|
] })
|
|
30485
30485
|
] }),
|
|
@@ -30945,11 +30945,11 @@ var TraceGraph = ({
|
|
|
30945
30945
|
target: span.span_id
|
|
30946
30946
|
});
|
|
30947
30947
|
}
|
|
30948
|
-
for (const
|
|
30948
|
+
for (const outgoingLinkSpanId of span.outgoing_link_span_ids ?? []) {
|
|
30949
30949
|
allEdges.push({
|
|
30950
|
-
id: `e-link-${
|
|
30950
|
+
id: `e-link-${outgoingLinkSpanId}-${span.span_id}`,
|
|
30951
30951
|
markerEnd: { color: "lightgray", height: 16, type: MarkerType.Arrow, width: 16 },
|
|
30952
|
-
source:
|
|
30952
|
+
source: outgoingLinkSpanId,
|
|
30953
30953
|
style: { stroke: "lightgray", strokeWidth: 1 },
|
|
30954
30954
|
// animated: true,
|
|
30955
30955
|
// style: { stroke: 'lightgray', strokeDasharray: '4 2', strokeWidth: 1 },
|
|
@@ -31150,12 +31150,12 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
|
|
|
31150
31150
|
for (const span of currentBatchSpans) {
|
|
31151
31151
|
allSpans.set(span.span_id, span);
|
|
31152
31152
|
}
|
|
31153
|
-
const [
|
|
31154
|
-
api.getSpans({
|
|
31155
|
-
api.getSpans({
|
|
31153
|
+
const [outgoingLinkResult, incomingLinkResult] = await Promise.all([
|
|
31154
|
+
api.getSpans({ outgoing_link_span_ids: currentSpanIds }),
|
|
31155
|
+
api.getSpans({ incoming_link_span_ids: currentSpanIds })
|
|
31156
31156
|
]);
|
|
31157
31157
|
const discoveredTraceIds = /* @__PURE__ */ new Set();
|
|
31158
|
-
for (const span of [...
|
|
31158
|
+
for (const span of [...outgoingLinkResult.spans, ...incomingLinkResult.spans]) {
|
|
31159
31159
|
if (!processedTraceIds.has(span.trace_id)) {
|
|
31160
31160
|
discoveredTraceIds.add(span.trace_id);
|
|
31161
31161
|
}
|