[feedback] metric for Crashpad database errors
Change-Id: I9f4ef730297429efb8e1929734ab2b89bd6e401d
diff --git a/fuchsia/feedback/metrics.yaml b/fuchsia/feedback/metrics.yaml
index 0e77d9c..7fa7cc8 100644
--- a/fuchsia/feedback/metrics.yaml
+++ b/fuchsia/feedback/metrics.yaml
@@ -58,7 +58,7 @@
max_event_code: 32
reports:
#####################################################################
- # crash_event_counts
+ # crash_state_event_counts
#
# Count of each of the crash states.
#####################################################################
@@ -114,3 +114,40 @@
meta_data:
max_release_stage: GA
expiration_date: 2020/08/27
+
+#####################################################################
+# crashpad_errors
+#
+# Record the number of times each Crashpad database function fails.
+# We send the event each time a Crashpad database function returns
+# an error.
+#####################################################################
+- id: 4
+ metric_name: crashpad_errors
+ metric_type: EVENT_OCCURRED
+ metric_dimensions:
+ - dimension: function
+ event_codes:
+ 0: Unknown
+ 1: InitializeDatabase
+ 2: PrepareNewCrashReport
+ 3: FinishedWritingCrashReport
+ 4: GetReportForUploading
+ 5: RecordUploadComplete
+ 6: SkipReportUpload
+ 7: LookUpCrashReport
+ max_event_code: 32
+ reports:
+ #####################################################################
+ # counts
+ #
+ # Count the number of times each function fails.
+ #####################################################################
+ - report_name: counts
+ id: 1
+ report_type: SIMPLE_OCCURRENCE_COUNT
+ local_privacy_noise_level: NONE
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ meta_data:
+ max_release_stage: GA
+ expiration_date: "2020/08/27"