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 fda002fd64 Preserve metrics saved view operation context
fda002fd64 is described below

commit fda002fd646af21449dd617059384460a6c4bcd6
Author: Logic <[email protected]>
AuthorDate: Wed Jun 10 08:40:09 2026 +0800

    Preserve metrics saved view operation context
---
 web-next/lib/signal-saved-views.test.ts | 4 +++-
 web-next/lib/signal-saved-views.ts      | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/web-next/lib/signal-saved-views.test.ts 
b/web-next/lib/signal-saved-views.test.ts
index e3b3e94db0..4fe36ec5af 100644
--- a/web-next/lib/signal-saved-views.test.ts
+++ b/web-next/lib/signal-saved-views.test.ts
@@ -140,7 +140,7 @@ describe('signal saved views API client', () => {
       id: 'metrics-latency',
       label: 'Latency',
       description: '',
-      route: 
'/ingestion/otlp/metrics?query=http.server.duration&series=checkout_latency-0&filter=service.name%3D%22checkout%22&traceId=trace-1&spanId=span-1&serviceName=checkout&serviceNamespace=payments&environment=prod&entityId=7&entityType=service&entityName=Checkout+API&source=otlp&collector=collector-a&template=spring-boot&aggregation=p95&temporalAggregation=rate&groupBy=route&legendFormat=%7B%7Bservice.name%7D%7D+-+p95&formula=A+*+1000&step=60&limit=10&inspector=table&warningThres
 [...]
+      route: 
'/ingestion/otlp/metrics?query=http.server.duration&series=checkout_latency-0&filter=service.name%3D%22checkout%22&traceId=trace-1&spanId=span-1&operationName=POST+%2Fcheckout&serviceName=checkout&serviceNamespace=payments&environment=prod&entityId=7&entityType=service&entityName=Checkout+API&source=otlp&collector=collector-a&template=spring-boot&aggregation=p95&temporalAggregation=rate&groupBy=route&legendFormat=%7B%7Bservice.name%7D%7D+-+p95&formula=A+*+1000&step=60&limit=
 [...]
       createdAt: 1780740000000
     });
 
@@ -190,6 +190,7 @@ describe('signal saved views API client', () => {
       template: 'spring-boot',
       traceId: 'trace-1',
       spanId: 'span-1',
+      operationName: 'POST /checkout',
       series: 'checkout_latency-0',
       filter: 'service.name="checkout"',
       temporalAggregation: 'rate',
@@ -204,6 +205,7 @@ describe('signal saved views API client', () => {
       relatedMetricResourceMatch: '{"k8s_pod_name":"checkout-7d9"}'
     }));
     expect(metricsDraft.description).toContain('temporalAggregation=rate');
+    expect(metricsDraft.description).toContain('operationName=POST /checkout');
     expect(metricsDraft.description).toContain('legendFormat={{service.name}} 
- p95');
     expect(metricsDraft.description).toContain('relatedMetricSource=pod');
   });
diff --git a/web-next/lib/signal-saved-views.ts 
b/web-next/lib/signal-saved-views.ts
index 1fee303640..f9b8098b67 100644
--- a/web-next/lib/signal-saved-views.ts
+++ b/web-next/lib/signal-saved-views.ts
@@ -146,6 +146,7 @@ const SAVED_VIEW_SUMMARY_PARAM_KEYS: 
Record<SignalSavedViewSignal, string[]> = {
     'filter',
     'traceId',
     'spanId',
+    'operationName',
     'serviceName',
     'serviceNamespace',
     'environment',


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

Reply via email to