@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.cjs CHANGED
@@ -15885,15 +15885,15 @@ var buildSpansEndpoint = (request) => {
15885
15885
  queryParameters.set("pagination_token", request.pagination_token);
15886
15886
  }
15887
15887
  for (const [key, value] of Object.entries(request)) {
15888
- if (value !== void 0 && key !== "limit" && key !== "linked_span_ids" && key !== "linking_span_ids" && key !== "pagination_token" && value !== null) {
15888
+ if (value !== void 0 && key !== "limit" && key !== "outgoing_link_span_ids" && key !== "incoming_link_span_ids" && key !== "pagination_token" && value !== null) {
15889
15889
  queryParameters.set(key, String(value));
15890
15890
  }
15891
15891
  }
15892
- if (request.linked_span_ids) {
15893
- queryParameters.set("linked_span_ids", request.linked_span_ids.join(","));
15892
+ if (request.outgoing_link_span_ids) {
15893
+ queryParameters.set("outgoing_link_span_ids", request.outgoing_link_span_ids.join(","));
15894
15894
  }
15895
- if (request.linking_span_ids) {
15896
- queryParameters.set("linking_span_ids", request.linking_span_ids.join(","));
15895
+ if (request.incoming_link_span_ids) {
15896
+ queryParameters.set("incoming_link_span_ids", request.incoming_link_span_ids.join(","));
15897
15897
  }
15898
15898
  const queryString = queryParameters.toString();
15899
15899
  return queryString ? `${API_ENDPOINTS.SPANS}?${queryString}` : API_ENDPOINTS.SPANS;
@@ -30932,11 +30932,11 @@ var TraceGraph = ({
30932
30932
  target: span.span_id
30933
30933
  });
30934
30934
  }
30935
- for (const linkedSpanId of span.linked_span_ids ?? []) {
30935
+ for (const outgoingLinkSpanId of span.outgoing_link_span_ids ?? []) {
30936
30936
  allEdges.push({
30937
- id: `e-link-${linkedSpanId}-${span.span_id}`,
30937
+ id: `e-link-${outgoingLinkSpanId}-${span.span_id}`,
30938
30938
  markerEnd: { color: "lightgray", height: 16, type: import_react65.MarkerType.Arrow, width: 16 },
30939
- source: linkedSpanId,
30939
+ source: outgoingLinkSpanId,
30940
30940
  style: { stroke: "lightgray", strokeWidth: 1 },
30941
30941
  // animated: true,
30942
30942
  // style: { stroke: 'lightgray', strokeDasharray: '4 2', strokeWidth: 1 },
@@ -31137,12 +31137,12 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
31137
31137
  for (const span of currentBatchSpans) {
31138
31138
  allSpans.set(span.span_id, span);
31139
31139
  }
31140
- const [linkedSpans, linkingSpans] = await Promise.all([
31141
- api.getSpans({ linked_span_ids: currentSpanIds }),
31142
- api.getSpans({ linking_span_ids: currentSpanIds })
31140
+ const [outgoingLinkResult, incomingLinkResult] = await Promise.all([
31141
+ api.getSpans({ outgoing_link_span_ids: currentSpanIds }),
31142
+ api.getSpans({ incoming_link_span_ids: currentSpanIds })
31143
31143
  ]);
31144
31144
  const discoveredTraceIds = /* @__PURE__ */ new Set();
31145
- for (const span of [...linkedSpans.spans, ...linkingSpans.spans]) {
31145
+ for (const span of [...outgoingLinkResult.spans, ...incomingLinkResult.spans]) {
31146
31146
  if (!processedTraceIds.has(span.trace_id)) {
31147
31147
  discoveredTraceIds.add(span.trace_id);
31148
31148
  }