Skip to content

The only tool you need to know what is happening and how to fix it.

chore: distributed tracing current pill

ddux000752776dd4
diff --git a/frontend/src/lib/components/distributed-trace/distributed-trace-card.svelte b/frontend/src/lib/components/distributed-trace/distributed-trace-card.svelte
index 2900b6a5..a0177698 100644
--- a/frontend/src/lib/components/distributed-trace/distributed-trace-card.svelte
+++ b/frontend/src/lib/components/distributed-trace/distributed-trace-card.svelte
@@ -14,9 +14,10 @@
interface Props {
distributedTraceId: string;
+ currentExceptionHash?: string;
}
- let { distributedTraceId }: Props = $props();
+ let { distributedTraceId, currentExceptionHash }: Props = $props();
const timezone = $derived(getTimezone());
@@ -112,10 +113,14 @@
<Badge variant="destructive" class="shrink-0">Exception</Badge>
{/if}
</div>
+ {#if currentExceptionHash && node.traceType === 'exception' && node.exception?.exceptionHash === currentExceptionHash}
+ <Badge class="bg-blue-500 hover:bg-blue-500 text-white">You're here</Badge>
+ {:else}
<Button variant="ghost" size="sm" onclick={() => navigateToNode(node)}>
View
<ArrowRight class="ml-1 h-3 w-3" />
</Button>
+ {/if}
</div>
{/each}
</div>
diff --git a/frontend/src/lib/components/issues/event-card.svelte b/frontend/src/lib/components/issues/event-card.svelte
index 8eca4e4c..eb294188 100644
--- a/frontend/src/lib/components/issues/event-card.svelte
+++ b/frontend/src/lib/components/issues/event-card.svelte
@@ -151,5 +151,5 @@
</Card.Root>
{#if linkedTrace?.distributedTraceId || occurrence.distributedTraceId}
- <DistributedTraceCard distributedTraceId={(linkedTrace?.distributedTraceId ?? occurrence.distributedTraceId)!} />
+ <DistributedTraceCard distributedTraceId={(linkedTrace?.distributedTraceId ?? occurrence.distributedTraceId)!} currentExceptionHash={occurrence.exceptionHash} />
{/if}