From e591b51919fc4f798a7620ec14e92ed3434f206b Mon Sep 17 00:00:00 2001 From: Adib234 <30782825+Adib234@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:49:50 -0400 Subject: [PATCH] fix(plan): update telemetry attribute keys and add timestamp (#23685) --- packages/core/src/telemetry/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/telemetry/types.ts b/packages/core/src/telemetry/types.ts index ffca3a2698..3a038b2482 100644 --- a/packages/core/src/telemetry/types.ts +++ b/packages/core/src/telemetry/types.ts @@ -2184,7 +2184,8 @@ export class ApprovalModeSwitchEvent implements BaseTelemetryEvent { toOpenTelemetryAttributes(config: Config): LogAttributes { return { ...getCommonAttributes(config), - event_name: EVENT_APPROVAL_MODE_SWITCH, + 'event.name': EVENT_APPROVAL_MODE_SWITCH, + 'event.timestamp': this['event.timestamp'], from_mode: this.from_mode, to_mode: this.to_mode, }; @@ -2214,7 +2215,8 @@ export class ApprovalModeDurationEvent implements BaseTelemetryEvent { toOpenTelemetryAttributes(config: Config): LogAttributes { return { ...getCommonAttributes(config), - event_name: EVENT_APPROVAL_MODE_DURATION, + 'event.name': EVENT_APPROVAL_MODE_DURATION, + 'event.timestamp': this['event.timestamp'], mode: this.mode, duration_ms: this.duration_ms, };