1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/metrics/structured/lib/histogram_util.h" 6 7 #include "base/metrics/histogram_macros.h" 8 9 namespace metrics::structured { 10 LogInternalError(StructuredMetricsError error)11void LogInternalError(StructuredMetricsError error) { 12 UMA_HISTOGRAM_ENUMERATION("UMA.StructuredMetrics.InternalError2", error); 13 } 14 LogKeyValidation(KeyValidationState state)15void LogKeyValidation(KeyValidationState state) { 16 UMA_HISTOGRAM_ENUMERATION("UMA.StructuredMetrics.KeyValidationState", state); 17 } 18 19 } // namespace metrics::structured 20