From 4f132e2e16479723e7dabe4550a70bdfa7c8ebbd 2019-04-08 18:44:32 From: Marcin Lulek Date: 2019-04-08 18:44:32 Subject: [PATCH] request_metric: fix wrong key --- diff --git a/backend/src/appenlight/models/services/request_metric.py b/backend/src/appenlight/models/services/request_metric.py index f6271cc..c0db755 100644 --- a/backend/src/appenlight/models/services/request_metric.py +++ b/backend/src/appenlight/models/services/request_metric.py @@ -333,7 +333,7 @@ class RequestMetricService(BaseService): for hit in bucket["top_calls_hits"]["hits"]["hits"]: details[bucket["key"]].append( { - "report_id": hit["_source"]["request_metric_id"], + "report_id": hit["_source"]["report_id"], "group_id": hit["_source"]["group_id"], } )