Skip to content

Commit 5d62df6

Browse files
committed
fix resource_names update
1 parent 30716c2 commit 5d62df6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datadog_lambda/tracing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def create_inferred_span_from_lambda_function_url_event(event, context):
857857
"http.url": http_url,
858858
"endpoint": path,
859859
"http.method": method,
860-
"resource_names": http_url,
860+
"resource_names": resource,
861861
"request_id": context.aws_request_id,
862862
}
863863
request_time_epoch = request_context.get("timeEpoch")
@@ -959,7 +959,7 @@ def create_inferred_span_from_api_gateway_websocket_event(
959959
"operation_name": "aws.apigateway.websocket",
960960
"http.url": http_url,
961961
"endpoint": endpoint,
962-
"resource_names": http_url,
962+
"resource_names": endpoint,
963963
"apiid": api_id,
964964
"apiname": api_id,
965965
"stage": request_context.get("stage"),
@@ -1017,7 +1017,7 @@ def create_inferred_span_from_api_gateway_event(
10171017
"http.url": http_url,
10181018
"endpoint": path,
10191019
"http.method": method,
1020-
"resource_names": http_url,
1020+
"resource_names": resource,
10211021
"apiid": api_id,
10221022
"apiname": api_id,
10231023
"stage": request_context.get("stage"),

0 commit comments

Comments
 (0)