Tally each type of message we see, so we can track use of new schemas as

they get deployed.
This commit is contained in:
James Muscat 2015-04-28 12:13:33 +01:00
parent bf952a736a
commit 592084973f

View File

@ -128,6 +128,8 @@ def parse_and_error_handle(data):
if validationResults.severity <= ValidationSeverity.WARN:
statsCollector.tally(parsed_message["$schemaRef"])
parsed_message['header']['gatewayTimestamp'] = datetime.utcnow().isoformat()
ip_hash_salt = Settings.GATEWAY_IP_KEY_SALT