Skip to content

Commit

Permalink
Handle shim data from GLEAN
Browse files Browse the repository at this point in the history
  • Loading branch information
relud committed Nov 29, 2022
1 parent 850401a commit 6634f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/telemetry/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6634f68

Please sign in to comment.