@localstack/appinspector-ui 1.0.104 → 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.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 !== "linked_span_ids" && key !== "linking_span_ids" && key !== "pagination_token" && value !== null) {
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.linked_span_ids) {
15906
- queryParameters.set("linked_span_ids", request.linked_span_ids.join(","));
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.linking_span_ids) {
15909
- queryParameters.set("linking_span_ids", request.linking_span_ids.join(","));
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;
@@ -30945,11 +30945,11 @@ var TraceGraph = ({
30945
30945
  target: span.span_id
30946
30946
  });
30947
30947
  }
30948
- for (const linkedSpanId of span.linked_span_ids ?? []) {
30948
+ for (const outgoingLinkSpanId of span.outgoing_link_span_ids ?? []) {
30949
30949
  allEdges.push({
30950
- id: `e-link-${linkedSpanId}-${span.span_id}`,
30950
+ id: `e-link-${outgoingLinkSpanId}-${span.span_id}`,
30951
30951
  markerEnd: { color: "lightgray", height: 16, type: MarkerType.Arrow, width: 16 },
30952
- source: linkedSpanId,
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 [linkedSpans, linkingSpans] = await Promise.all([
31154
- api.getSpans({ linked_span_ids: currentSpanIds }),
31155
- api.getSpans({ linking_span_ids: currentSpanIds })
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 [...linkedSpans.spans, ...linkingSpans.spans]) {
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
  }