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 d61e8f13c1 Align trace operation group drilldown
d61e8f13c1 is described below
commit d61e8f13c18ad4df8a265a04b36d48a0b3ddb4d1
Author: Logic <[email protected]>
AuthorDate: Tue Jun 9 18:16:31 2026 +0800
Align trace operation group drilldown
---
web-next/lib/signal-dashboards.test.ts | 43 ++++++++++++++++++++++++++++++++++
web-next/lib/signal-dashboards.ts | 2 +-
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/web-next/lib/signal-dashboards.test.ts
b/web-next/lib/signal-dashboards.test.ts
index e32a095f60..6838ac86cd 100644
--- a/web-next/lib/signal-dashboards.test.ts
+++ b/web-next/lib/signal-dashboards.test.ts
@@ -3314,6 +3314,49 @@ describe('signal dashboards API client', () => {
}));
});
+ it('maps trace operation groups to operation drilldown without creating
operation entities', async () => {
+ const [plan] = buildSignalDashboardExecutionPlans({
+ dashboardKey: 'signals-overview',
+ title: 'Signals overview',
+ description: 'Signals',
+ tags: 'traces',
+ layout: '[]',
+ widgets: JSON.stringify([
+ {
+ id: 'traces-key-operations',
+ signal: 'traces',
+ title: 'Key operations',
+ visualization: 'list',
+ route:
'/trace/manage?serviceName=checkout&serviceNamespace=payments&environment=prod&entityId=4200&entityType=service&entityName=Checkout+API&source=otlp&collector=collector-a&template=spring-boot&spanScope=all&groupBy=operation&groupLimit=8'
+ }
+ ])
+ });
+
+ const result = await executeSignalDashboardPanelPlan(plan, async url => {
+
expect(url).toBe('/traces/stats/group-by?serviceName=checkout&spanScope=all&entityId=4200&entityType=service&serviceNamespace=payments&environment=prod&groupBy=operation&limit=8');
+ return {
+ groupBy: 'operation',
+ groups: [{
+ value: 'POST /checkout',
+ traceCount: 11,
+ errorTraceCount: 2,
+ latencyP95Ms: 240
+ }]
+ };
+ });
+ const renderer = buildSignalDashboardPanelRuntimeRenderDescriptor(plan,
result);
+
+ expect(renderer.rows[0]).toEqual(expect.objectContaining({
+ key: 'traces-key-operations:group:0',
+ title: 'POST /checkout',
+ copy: '11 traces · 2 errors',
+ meta: 'operation · p95 240ms',
+ relatedSignal: 'traces',
+ relatedHandoffHref:
'/trace/manage?serviceName=checkout&spanScope=all&environment=prod&entityId=4200&entityType=service&entityName=Checkout+API&serviceNamespace=payments&source=otlp&collector=collector-a&template=spring-boot&view=list&operationName=POST+%2Fcheckout'
+ }));
+
expect(renderer.rows[0]?.relatedHandoffHref).not.toContain('resourceFilter=operation');
+ });
+
it('renders backend-compatible trace group payload variants', async () => {
const [plan] = buildSignalDashboardExecutionPlans({
dashboardKey: 'signals-overview',
diff --git a/web-next/lib/signal-dashboards.ts
b/web-next/lib/signal-dashboards.ts
index 91591b26a2..cac98d9b62 100644
--- a/web-next/lib/signal-dashboards.ts
+++ b/web-next/lib/signal-dashboards.ts
@@ -2601,7 +2601,7 @@ function buildTraceGroupResourceExpression(groupBy:
string, value: string) {
if (normalizedGroupBy === 'service.name' || normalizedGroupBy ===
'service_name') {
return { kind: 'service' as const, value: normalizedValue };
}
- if (normalizedGroupBy === 'operation.name' || normalizedGroupBy ===
'span.name') {
+ if (normalizedGroupBy === 'operation' || normalizedGroupBy ===
'operation.name' || normalizedGroupBy === 'span.name') {
return { kind: 'operation' as const, value: normalizedValue };
}
if (normalizedGroupBy === 'status') {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]