Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/boto3/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def add_metadata(self, client: "BaseClient") -> None:
# botocore's internal identifier, e.g. `apigateway`.
self.service_name = service_model.service_name
service_id = service_model.service_id
# modeled AWS service identity used in span names, e.g. `API Gateway`.
self.service_id = str(service_id)
# modeled AWS service identity used in span names with whitespace stripped, e.g. `API Gateway` => `APIGateway`.
self.service_id = "".join(str(service_id).split())
self.service_id_hyphenized = service_id.hyphenize()

with capture_internal_exceptions():
Expand Down
4 changes: 2 additions & 2 deletions tests/integrations/boto3/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def get_response_attributes(self, ctx, response):
"apigateway",
"get_rest_apis",
{},
"API Gateway.GetRestApis",
"API Gateway",
"APIGateway.GetRestApis",
"APIGateway",
"GetRestApis",
None,
"apigateway.eu-north-1.amazonaws.com",
Expand Down
Loading