fix(otel): show workbench UI timing in trace summary (#710)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-23 01:34:55 +08:00
committed by GitHub
parent 7a72e396ba
commit 6e44260451
@@ -1061,6 +1061,16 @@ function spanDetail(span: Record<string, unknown>, maxLength: number): string {
attrPart(attrs, "commandFingerprint"),
attrPart(attrs, "http.route"),
attrPart(attrs, "http.response.status_code"),
attrPart(attrs, "http.response.status_class"),
attrPart(attrs, "workbench.ui.event_type"),
attrPart(attrs, "workbench.ui.scope"),
attrPart(attrs, "workbench.ui.state"),
attrPart(attrs, "workbench.ui.reason"),
attrPart(attrs, "workbench.ui.outcome"),
attrPart(attrs, "workbench.ui.value_ms"),
attrPart(attrs, "workbench.ui.activity_idle_ms"),
attrPart(attrs, "workbench.ui.activity_waiting_for"),
attrPart(attrs, "workbench.ui.activity_last_event_label"),
attrPart(attrs, "hwlab.http.stage"),
attrPart(attrs, "hwlab.http.phase"),
attrPart(attrs, "hwlab.http.phase.outcome"),
@@ -2047,6 +2057,12 @@ IMPORTANT_ATTRS = [
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.response.status_code", "http.method", "http.request.method",
"http.response.status_class", "workbench.ui.event_type",
"workbench.ui.scope", "workbench.ui.state", "workbench.ui.reason",
"workbench.ui.route", "workbench.ui.outcome", "workbench.ui.value_ms",
"workbench.ui.visibility", "workbench.ui.event_name",
"workbench.ui.activity_idle_ms", "workbench.ui.activity_waiting_for",
"workbench.ui.activity_last_event_label",
"db.system", "db.operation.name", "db.sql.table", "db.query.arg_count",
"db.index.expected", "db.pool.max_open", "db.pool.open_connections",
"db.pool.in_use", "db.pool.idle", "db.pool.wait_count",
@@ -2323,6 +2339,12 @@ IMPORTANT_ATTRS = [
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.response.status_code", "http.method", "http.request.method",
"http.response.status_class", "workbench.ui.event_type",
"workbench.ui.scope", "workbench.ui.state", "workbench.ui.reason",
"workbench.ui.route", "workbench.ui.outcome", "workbench.ui.value_ms",
"workbench.ui.visibility", "workbench.ui.event_name",
"workbench.ui.activity_idle_ms", "workbench.ui.activity_waiting_for",
"workbench.ui.activity_last_event_label",
"http.target", "http.url", "url.path",
"db.system", "db.operation.name", "db.sql.table", "db.query.arg_count",
"db.index.expected", "db.pool.max_open", "db.pool.open_connections",
@@ -2732,6 +2754,12 @@ IMPORTANT_ATTRS = [
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.response.status_code", "http.method", "http.request.method",
"http.response.status_class", "workbench.ui.event_type",
"workbench.ui.scope", "workbench.ui.state", "workbench.ui.reason",
"workbench.ui.route", "workbench.ui.outcome", "workbench.ui.value_ms",
"workbench.ui.visibility", "workbench.ui.event_name",
"workbench.ui.activity_idle_ms", "workbench.ui.activity_waiting_for",
"workbench.ui.activity_last_event_label",
"db.system", "db.operation.name", "db.sql.table", "db.query.arg_count",
"db.index.expected", "db.pool.max_open", "db.pool.open_connections",
"db.pool.in_use", "db.pool.idle", "db.pool.wait_count",