This is an automated email from the ASF dual-hosted git repository.

zqr10159 pushed a commit to branch 2.0.0
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/2.0.0 by this push:
     new 76e97c23b4 Record drilldown metadata in breakout drafts
76e97c23b4 is described below

commit 76e97c23b439a657ad7fb385fe7796deb811c6aa
Author: Logic <[email protected]>
AuthorDate: Tue Jun 9 19:48:21 2026 +0800

    Record drilldown metadata in breakout drafts
---
 web-next/lib/signal-dashboards.test.ts | 16 +++++++++++++---
 web-next/lib/signal-dashboards.ts      |  5 +++++
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/web-next/lib/signal-dashboards.test.ts 
b/web-next/lib/signal-dashboards.test.ts
index a9354b9bfe..a53ec65c43 100644
--- a/web-next/lib/signal-dashboards.test.ts
+++ b/web-next/lib/signal-dashboards.test.ts
@@ -2483,7 +2483,8 @@ describe('signal dashboards API client', () => {
         source: 'metrics-point',
         label: 'signoz_db_latency_count',
         value: '7',
-        meta: '2000'
+        meta: '2000',
+        resourceFilter: 'db.system=postgresql'
       },
       route: 
'/ingestion/otlp/metrics?query=signoz_db_latency_count&serviceName=checkout&series=postgresql&inspector=graph&start=1000&end=3000',
       attribute: {
@@ -2509,6 +2510,7 @@ describe('signal dashboards API client', () => {
       evidenceSource: 'metrics-point',
       evidenceLabel: 'signoz_db_latency_count',
       evidenceValue: '7',
+      resourceFilter: 'db.system=postgresql',
       breakoutAttribute: 'db.system',
       breakoutAttributeValue: 'postgresql'
     }));
@@ -2521,7 +2523,8 @@ describe('signal dashboards API client', () => {
         label: 'checkout',
         value: 'timeout',
         traceId: 'trace-1',
-        spanId: 'span-1'
+        spanId: 'span-1',
+        attributeFilter: 'region:us'
       },
       route: 
'/log/manage?view=table&traceId=trace-1&spanId=span-1&serviceName=checkout&serviceNamespace=payments&start=1000&end=3000',
       attribute: {
@@ -2540,6 +2543,9 @@ describe('signal dashboards API client', () => {
     
expect(JSON.parse(String(logDraft?.payload))).toEqual(expect.objectContaining({
       source: 'signal-dashboard-runtime-breakout',
       sourcePanelId: 'logs-panel',
+      traceId: 'trace-1',
+      spanId: 'span-1',
+      attributeFilter: 'region:us',
       breakoutAttribute: 'resource:service.name',
       breakoutAttributeValue: 'checkout'
     }));
@@ -2552,7 +2558,8 @@ describe('signal dashboards API client', () => {
         label: 'checkout',
         value: 'POST /checkout',
         traceId: 'trace-1',
-        spanId: 'span-root'
+        spanId: 'span-root',
+        operationName: 'POST /checkout'
       },
       route: 
'/trace/manage?view=trace&traceId=trace-1&spanId=span-root&serviceName=checkout&serviceNamespace=payments&spanScope=all&start=1000&end=3000',
       attribute: {
@@ -2571,6 +2578,9 @@ describe('signal dashboards API client', () => {
     
expect(JSON.parse(String(traceDraft?.payload))).toEqual(expect.objectContaining({
       source: 'signal-dashboard-runtime-breakout',
       sourcePanelId: 'trace-panel',
+      traceId: 'trace-1',
+      spanId: 'span-root',
+      operationName: 'POST /checkout',
       breakoutAttribute: 'resource:service.version',
       breakoutAttributeValue: '1.2.3'
     }));
diff --git a/web-next/lib/signal-dashboards.ts 
b/web-next/lib/signal-dashboards.ts
index 7d1d09c36c..43dcdb9a3e 100644
--- a/web-next/lib/signal-dashboards.ts
+++ b/web-next/lib/signal-dashboards.ts
@@ -1314,6 +1314,11 @@ export function 
createSignalDashboardPanelDraftFromRuntimeBreakout(input: {
       evidenceSource: input.row.source,
       evidenceLabel,
       evidenceValue: input.row.value,
+      ...(input.row.traceId ? { traceId: input.row.traceId } : {}),
+      ...(input.row.spanId ? { spanId: input.row.spanId } : {}),
+      ...(input.row.operationName ? { operationName: input.row.operationName } 
: {}),
+      ...(input.row.resourceFilter ? { resourceFilter: 
input.row.resourceFilter } : {}),
+      ...(input.row.attributeFilter ? { attributeFilter: 
input.row.attributeFilter } : {}),
       breakoutAttribute: attributeName,
       ...(attributeValue ? { breakoutAttributeValue: attributeValue } : {})
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to