From 6634f68a3d715170a11040214ca1926210c069b1 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Thu, 10 Nov 2022 09:57:50 -0800 Subject: [PATCH] Handle shim data from GLEAN --- app/telemetry/handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/telemetry/handler.py b/app/telemetry/handler.py index ba50864..251d666 100644 --- a/app/telemetry/handler.py +++ b/app/telemetry/handler.py @@ -24,6 +24,10 @@ def handle_message(event, context): for tile in telemetry["tiles"]: if "shim" in tile: ping_adzerk(tile['shim']) + elif "metrics" in telemetry: + text_metrics = telemetry["metrics"].get("text", {}) + if "pocket.spoc_shim" in text_metrics: + ping_adzerk(text_metrics["pocket.spoc_shim"]) def ping_adzerk(shim):