Skip to content

Commit 7458755

Browse files
move attribute to start_span
1 parent 0c635e7 commit 7458755

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/boto3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def _sentry_request_created(
7676
attributes={
7777
"sentry.op": OP.HTTP_CLIENT,
7878
"sentry.origin": Boto3Integration.origin,
79+
SPANDATA.RPC_METHOD: f"{service_id}/{operation_name}",
7980
},
8081
)
8182
if request.url is not None:
@@ -85,7 +86,6 @@ def _sentry_request_created(
8586
span.set_attribute(SPANDATA.URL_QUERY, parsed_url.query)
8687
span.set_attribute(SPANDATA.URL_FRAGMENT, parsed_url.fragment)
8788

88-
span.set_attribute(SPANDATA.RPC_METHOD, f"{service_id}/{operation_name}")
8989
if request.method is not None:
9090
span.set_attribute(SPANDATA.HTTP_REQUEST_METHOD, request.method)
9191
else:

0 commit comments

Comments
 (0)