mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 02:52:18 +08:00
@ -117,7 +117,7 @@ class BotocoreTest(BaseTracerTestCase):
|
||||
self.assertEqual(spans[1].resource, 's3.putobject')
|
||||
self.assertEqual(spans[1].get_tag('params.Key'), stringify(params['Key']))
|
||||
self.assertEqual(spans[1].get_tag('params.Bucket'), stringify(params['Bucket']))
|
||||
# confirm blacklisted
|
||||
# confirm denylisted
|
||||
self.assertIsNone(spans[1].get_tag('params.Body'))
|
||||
|
||||
@mock_sqs
|
||||
|
@ -137,7 +137,7 @@ class TestHeaders(object):
|
||||
}, span, integration_config)
|
||||
assert span.get_tag('http.response.headers.content-type') == ' some;value '
|
||||
|
||||
def test_no_whitelist(self, span, integration_config):
|
||||
def test_no_allowlist(self, span, integration_config):
|
||||
"""
|
||||
:type span: Span
|
||||
:type integration_config: IntegrationConfig
|
||||
@ -147,7 +147,7 @@ class TestHeaders(object):
|
||||
}, span, integration_config)
|
||||
assert span.get_tag('http.response.headers.content-type') is None
|
||||
|
||||
def test_whitelist_exact(self, span, integration_config):
|
||||
def test_allowlist_exact(self, span, integration_config):
|
||||
"""
|
||||
:type span: Span
|
||||
:type integration_config: IntegrationConfig
|
||||
@ -158,7 +158,7 @@ class TestHeaders(object):
|
||||
}, span, integration_config)
|
||||
assert span.get_tag('http.response.headers.content-type') == 'some;value'
|
||||
|
||||
def test_whitelist_case_insensitive(self, span, integration_config):
|
||||
def test_allowlist_case_insensitive(self, span, integration_config):
|
||||
"""
|
||||
:type span: Span
|
||||
:type integration_config: IntegrationConfig
|
||||
|
@ -47,7 +47,7 @@ class TestHttpConfig(BaseTestCase):
|
||||
assert http_config.header_is_traced('some_header')
|
||||
assert not http_config.header_is_traced('some_other_header')
|
||||
|
||||
def test_trace_headers_whitelist_case_insensitive(self):
|
||||
def test_trace_headers_allowlist_case_insensitive(self):
|
||||
http_config = HttpConfig()
|
||||
http_config.trace_headers('some_header')
|
||||
assert http_config.header_is_traced('sOmE_hEaDeR')
|
||||
|
Reference in New Issue
Block a user