Skip to content

Commit 8e2187a

Browse files
committed
account for orphan traces
1 parent a49dafd commit 8e2187a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/spotlight/src/ui/telemetry/store/utils/traceProcessor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ export function updateTraceMetadata(trace: Trace): void {
144144
`[Spotlight] Orphan trace detected (trace_id: ${trace.trace_id}). ` +
145145
`Using first transaction "${trace.transactions[0].transaction}" as fallback.`,
146146
);
147+
// use the first transcation for orphan traces
148+
trace.rootTransaction = trace.transactions[0];
147149
trace.rootTransactionName = trace.transactions[0].transaction || "(orphan transaction)";
148150
} else {
149151
trace.rootTransactionName = "(missing root transaction)";

0 commit comments

Comments
 (0)