Add Metadata to Metric Logs to analyze the log sources.
For UKM logs, this propagates information on the type of events
in them, in particular whether the log has appkm events, regular
ukm events, or a combination of both. This will allow us to
customize the network annotations used for uploading these logs,
which will be done in a follow-up CL.
BUG=chromium:1497020
BUG=b:302590163
Change-Id: I16c2ae325809e6d1b9b09dc3483600f174c2a85f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4933162
Commit-Queue: Nik K <[email protected]>
Reviewed-by: Nicolas Ouellet-Payeur <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Auto-Submit: Nik K <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1222477}
diff --git a/components/metrics/metrics_log_uploader.h b/components/metrics/metrics_log_uploader.h
index 9852c08b..06d86ac 100644
--- a/components/metrics/metrics_log_uploader.h
+++ b/components/metrics/metrics_log_uploader.h
@@ -9,6 +9,7 @@
#include "base/functional/callback.h"
#include "base/strings/string_piece.h"
+#include "components/metrics/metrics_log.h"
namespace metrics {
@@ -53,6 +54,7 @@
// doesn't do this validation, then |log_hash| and |log_signature| can be
// ignored.
virtual void UploadLog(const std::string& compressed_log_data,
+ const LogMetadata& log_metadata,
const std::string& log_hash,
const std::string& log_signature,
const ReportingInfo& reporting_info) = 0;