mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
2bc481a3b5
Decouples generic OpenTelemetry attributes from metric-specific attributes to resolve a Cloud Monitoring 'Internal error encountered' caused by a cardinality explosion. High-cardinality values like session.id, installation.id, user.email, and experiments.ids are now excluded from time series metric labels, but they are still preserved on traces and logs. Also refactors getCommonAttributes to use getCommonMetricAttributes to reduce repetition, and adds robust unit tests covering the truncation of the experiments.ids array and fallback cases.