Skip to content

Commit eaa81ac

Browse files
committed
Add comment
1 parent fcd766c commit eaa81ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datadog_lambda/trigger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ def extract_http_tags(event):
302302
# Try to get `routeKey` from API GW v2; otherwise try to get `resource` from API GW v1
303303
route = event.get("routeKey") or event.get("resource")
304304
if route:
305+
# "GET /my/endpoint" = > "/my/endpoint"
305306
http_tags["http.route"] = route.split(" ")[-1]
306307

307308
return http_tags

0 commit comments

Comments
 (0)