Skip to content

Commit

Permalink
List all spans instead of only root ones
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Oct 2, 2024
1 parent 7774bcc commit c0f739a
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions components/txs-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,20 @@ export default function TxsData() {
<div>
<h1>Transactions</h1>
<ul>
{data.txs
.filter((tx: Tx) => !tx._source.references.length)
.map((tx: Tx) => (
<li key={tx._id}>
<Link href={`/txs/${tx._source.traceID}`}>
{tx._source.traceID} - {tx._source.operationName} -{" "}
{
data.txs.filter(
(txToFilter: Tx) =>
txToFilter._source.traceID === tx._source.traceID,
).length
}{" "}
spans - {tx._source.tags.length} tags
</Link>
</li>
))}
{data.txs.map((tx: Tx) => (
<li key={tx._id}>
<Link href={`/txs/${tx._source.traceID}`}>
{tx._source.traceID} - {tx._source.operationName} -{" "}
{
data.txs.filter(
(txToFilter: Tx) =>
txToFilter._source.traceID === tx._source.traceID,
).length
}{" "}
spans - {tx._source.tags.length} tags
</Link>
</li>
))}
</ul>
</div>
);
Expand Down

0 comments on commit c0f739a

Please sign in to comment.