mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
fix(plan): update telemetry attribute keys and add timestamp (#23685)
This commit is contained in:
@@ -2184,7 +2184,8 @@ export class ApprovalModeSwitchEvent implements BaseTelemetryEvent {
|
|||||||
toOpenTelemetryAttributes(config: Config): LogAttributes {
|
toOpenTelemetryAttributes(config: Config): LogAttributes {
|
||||||
return {
|
return {
|
||||||
...getCommonAttributes(config),
|
...getCommonAttributes(config),
|
||||||
event_name: EVENT_APPROVAL_MODE_SWITCH,
|
'event.name': EVENT_APPROVAL_MODE_SWITCH,
|
||||||
|
'event.timestamp': this['event.timestamp'],
|
||||||
from_mode: this.from_mode,
|
from_mode: this.from_mode,
|
||||||
to_mode: this.to_mode,
|
to_mode: this.to_mode,
|
||||||
};
|
};
|
||||||
@@ -2214,7 +2215,8 @@ export class ApprovalModeDurationEvent implements BaseTelemetryEvent {
|
|||||||
toOpenTelemetryAttributes(config: Config): LogAttributes {
|
toOpenTelemetryAttributes(config: Config): LogAttributes {
|
||||||
return {
|
return {
|
||||||
...getCommonAttributes(config),
|
...getCommonAttributes(config),
|
||||||
event_name: EVENT_APPROVAL_MODE_DURATION,
|
'event.name': EVENT_APPROVAL_MODE_DURATION,
|
||||||
|
'event.timestamp': this['event.timestamp'],
|
||||||
mode: this.mode,
|
mode: this.mode,
|
||||||
duration_ms: this.duration_ms,
|
duration_ms: this.duration_ms,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user