File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def build_fetch_operation_name(operation_name: object) -> str:
136136 if next_character_index == len (normalized_lower_operation_name ):
137137 return normalized_operation_name
138138 next_character = normalized_lower_operation_name [next_character_index ]
139- if next_character .isspace () or next_character == "?" :
139+ if not next_character .isalnum () :
140140 return normalized_operation_name
141141 return build_operation_name (
142142 _FETCH_OPERATION_NAME_PREFIX ,
Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ def test_build_fetch_operation_name_is_idempotent_for_sanitized_fetch_separator(
7070 assert normalized_operation_name .count ("Fetching" ) == 1
7171
7272
73+ def test_build_fetch_operation_name_is_idempotent_for_punctuation_separator ():
74+ operation_name = "Fetching...crawl job 123"
75+ normalized_operation_name = build_fetch_operation_name (operation_name )
76+
77+ assert normalized_operation_name == operation_name
78+
79+
7380def test_build_fetch_operation_name_prefixes_non_separator_fetching_variants ():
7481 operation_name = "FetchingTask"
7582 normalized_operation_name = build_fetch_operation_name (operation_name )
You can’t perform that action at this time.
0 commit comments