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 e0bccccf0e Preserve trace operation handoff context
e0bccccf0e is described below
commit e0bccccf0eb4a0f2db35b71c37798a541ccf1222
Author: Logic <[email protected]>
AuthorDate: Wed Jun 10 08:07:11 2026 +0800
Preserve trace operation handoff context
---
web-next/lib/trace-manage/view-model.test.ts | 3 +++
web-next/lib/trace-manage/view-model.ts | 1 +
2 files changed, 4 insertions(+)
diff --git a/web-next/lib/trace-manage/view-model.test.ts
b/web-next/lib/trace-manage/view-model.test.ts
index 436999721a..a7ac84bb06 100644
--- a/web-next/lib/trace-manage/view-model.test.ts
+++ b/web-next/lib/trace-manage/view-model.test.ts
@@ -772,6 +772,7 @@ describe('trace view model', () => {
expect(logParams.get('environment')).toBe('prod-east');
expect(logParams.get('collector')).toBe('collector-b');
expect(logParams.get('template')).toBe('postgres');
+ expect(logParams.get('operationName')).toBe('POST /checkout');
expect(logParams.get('returnTo')).toBe('/trace/manage?traceId=trace-entity-from-detail');
const metricsParams = new URL(result.metricsHref,
'https://example.com').searchParams;
@@ -786,12 +787,14 @@ describe('trace view model', () => {
expect(entityHref.searchParams.get('entityName')).toBe('Checkout DB');
expect(entityHref.searchParams.get('collector')).toBe('collector-b');
expect(entityHref.searchParams.get('template')).toBe('postgres');
+ expect(entityHref.searchParams.get('operationName')).toBe('POST
/checkout');
const alertHandlingHref = new URL(result.alertHandlingHref,
'https://example.com');
expect(alertHandlingHref.searchParams.get('entityId')).toBe('43');
expect(alertHandlingHref.searchParams.get('entityName')).toBe('Checkout
DB');
expect(alertHandlingHref.searchParams.get('collector')).toBe('collector-b');
expect(alertHandlingHref.searchParams.get('template')).toBe('postgres');
+ expect(alertHandlingHref.searchParams.get('operationName')).toBe('POST
/checkout');
});
it('carries selected span resource attributes into trace-to-metrics
handoffs', () => {
diff --git a/web-next/lib/trace-manage/view-model.ts
b/web-next/lib/trace-manage/view-model.ts
index 67e7988944..1b5992073a 100644
--- a/web-next/lib/trace-manage/view-model.ts
+++ b/web-next/lib/trace-manage/view-model.ts
@@ -871,6 +871,7 @@ export function buildTraceHandoffLinks(
template,
traceId,
spanId,
+ operationName,
returnTo: stripReturnLabelFromHref(routeContext.returnTo),
source: routeContext.source || 'otlp',
start,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]