@@ -130,6 +130,10 @@ async def test_http_custom_request_headers_in_span_attributes(self):
130
130
(b"Regex-Test-Header-1" , b"Regex Test Value 1" ),
131
131
(b"regex-test-header-2" , b"RegexTestValue2,RegexTestValue3" ),
132
132
(b"My-Secret-Header" , b"My Secret Value" ),
133
+ (
134
+ b"non-utf8-header" ,
135
+ b"Moto Z\xb2 " ,
136
+ ),
133
137
]
134
138
)
135
139
self .seed_app (self .app )
@@ -147,6 +151,7 @@ async def test_http_custom_request_headers_in_span_attributes(self):
147
151
"http.request.header.regex_test_header_2" : (
148
152
"RegexTestValue2,RegexTestValue3" ,
149
153
),
154
+ "http.request.header.non_utf8_header" : ("Moto Z²" ,),
150
155
"http.request.header.my_secret_header" : ("[REDACTED]" ,),
151
156
}
152
157
for span in span_list :
@@ -418,7 +423,7 @@ async def test_websocket_custom_response_headers_not_in_span_attributes(
418
423
419
424
420
425
SANITIZE_FIELDS_TEST_VALUE = ".*my-secret.*"
421
- SERVER_REQUEST_TEST_VALUE = "Custom-Test-Header-1,Custom-Test-Header-2,Custom-Test-Header-3,Regex-Test-Header-.*,Regex-Invalid-Test-Header-.*,.*my-secret.*"
426
+ SERVER_REQUEST_TEST_VALUE = "Custom-Test-Header-1,Custom-Test-Header-2,Custom-Test-Header-3,Regex-Test-Header-.*,Regex-Invalid-Test-Header-.*,.*my-secret.*,non-utf8-header "
422
427
SERVER_RESPONSE_TEST_VALUE = "Custom-Test-Header-1,Custom-Test-Header-2,Custom-Test-Header-3,my-custom-regex-header-.*,invalid-regex-header-.*,.*my-secret.*"
423
428
424
429
0 commit comments