Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: infra/libs/event_mon/monitoring.py

Issue 875403010: event_mon: actually implemented push (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebased + fixed nits Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/libs/event_mon/config.py ('k') | infra/libs/event_mon/router.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/event_mon/monitoring.py
diff --git a/infra/libs/event_mon/monitoring.py b/infra/libs/event_mon/monitoring.py
index 81456143d9fb41ad9cc214e36a155a01c022345c..7a1f992cd5ae5f200f664eb3255c3e7113dba140 100644
--- a/infra/libs/event_mon/monitoring.py
+++ b/infra/libs/event_mon/monitoring.py
@@ -41,7 +41,7 @@ def send_service_event(event_type,
if timestamp_kind:
event.timestamp_kind = getattr(ChromeInfraEvent, timestamp_kind)
- # TODO: Serialize protobuf here.
log_event = LogRequestLite.LogEventLite()
log_event.event_time_ms = event_timestamp or router.time_ms()
+ log_event.source_extension = event.SerializeToString()
return config._router.push_event(log_event)
« no previous file with comments | « infra/libs/event_mon/config.py ('k') | infra/libs/event_mon/router.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698