Skip to content

Commit 2001df8

Browse files
committed
Rename cross_process_headers to distributed_tracing_headers
1 parent d88c7f5 commit 2001df8

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

tests/external_http/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pytest
1818
from testing_support.external_fixtures import cache_outgoing_headers
1919
from testing_support.fixtures import override_application_settings
20-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
20+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2121
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2222

2323
from newrelic.api.background_task import background_task
@@ -74,7 +74,7 @@ def _test():
7474
def test_http_cross_process_request(distributed_tracing, span_events, server):
7575
@background_task(name="test_http:test_http_cross_process_request")
7676
@cache_outgoing_headers
77-
@validate_cross_process_headers
77+
@validate_distributed_tracing_headers
7878
def _test():
7979
connection = http.client.HTTPConnection("localhost", server.port)
8080
connection.request("GET", "/")

tests/external_httplib/test_httplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import pytest
2020
from testing_support.external_fixtures import cache_outgoing_headers
2121
from testing_support.fixtures import override_application_settings
22-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
22+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2323
from testing_support.validators.validate_span_events import validate_span_events
2424
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2525
from testing_support.validators.validate_tt_segment_params import validate_tt_segment_params
@@ -114,7 +114,7 @@ def _test():
114114
def test_httplib_cross_process_request(server, distributed_tracing, span_events):
115115
@background_task(name="test_httplib:test_httplib_cross_process_request")
116116
@cache_outgoing_headers
117-
@validate_cross_process_headers
117+
@validate_distributed_tracing_headers
118118
def _test():
119119
connection = httplib.HTTPConnection("localhost", server.port)
120120
connection.request("GET", "/")

tests/external_httplib/test_urllib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import urllib
2323

2424
from testing_support.external_fixtures import cache_outgoing_headers
25-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
25+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2626
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2727

2828
from newrelic.api.background_task import background_task
@@ -136,7 +136,7 @@ def test_urlopener_file_request():
136136
@SKIP_IF_PYTHON_3_14_OR_ABOVE
137137
@background_task()
138138
@cache_outgoing_headers
139-
@validate_cross_process_headers
139+
@validate_distributed_tracing_headers
140140
def test_urlopener_cross_process_request(server):
141141
opener = urllib.URLopener()
142142
opener.open(f"http://localhost:{server.port}/")
@@ -175,6 +175,6 @@ def _test():
175175

176176
@background_task()
177177
@cache_outgoing_headers
178-
@validate_cross_process_headers
178+
@validate_distributed_tracing_headers
179179
def test_urlretrieve_cross_process_request(server):
180180
urllib.urlretrieve(f"http://localhost:{server.port}/")

tests/external_httplib/test_urllib2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import pytest
1818
from testing_support.external_fixtures import cache_outgoing_headers
19-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
19+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2020
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2121

2222
from newrelic.api.background_task import background_task
@@ -113,6 +113,6 @@ def test_urlopen_file_request():
113113

114114
@background_task()
115115
@cache_outgoing_headers
116-
@validate_cross_process_headers
116+
@validate_distributed_tracing_headers
117117
def test_urlopen_cross_process_request(server):
118118
urllib2.urlopen(f"http://localhost:{server.port}/")

tests/external_httplib2/test_httplib2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import pytest
1717
from testing_support.external_fixtures import cache_outgoing_headers
1818
from testing_support.fixtures import override_application_settings
19-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
19+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2020
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2121

2222
from newrelic.api.background_task import background_task
@@ -92,7 +92,7 @@ def _test():
9292
def test_httplib2_cross_process_request(distributed_tracing, span_events, server):
9393
@background_task(name="test_httplib2:test_httplib2_cross_process_response")
9494
@cache_outgoing_headers
95-
@validate_cross_process_headers
95+
@validate_distributed_tracing_headers
9696
def _test():
9797
connection = httplib2.HTTPConnectionWithTimeout("localhost", server.port)
9898
connection.request("GET", "/")

tests/external_httpx/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pytest
1818
from testing_support.fixtures import dt_enabled, override_application_settings, override_generic_settings
1919
from testing_support.mock_external_http_server import MockExternalHTTPHResponseHeadersServer
20-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
20+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2121
from testing_support.validators.validate_span_events import validate_span_events
2222
from testing_support.validators.validate_transaction_errors import validate_transaction_errors
2323
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
@@ -112,7 +112,7 @@ def test_sync_cross_process_request(httpx, sync_client, mock_server, distributed
112112
)
113113
@validate_transaction_errors(errors=[])
114114
@background_task(name="test_sync_cross_process_request")
115-
@validate_cross_process_headers
115+
@validate_distributed_tracing_headers
116116
def _test():
117117
transaction = current_transaction()
118118

@@ -129,7 +129,7 @@ def _test():
129129
@pytest.mark.parametrize("distributed_tracing,span_events", ((True, True), (True, False), (False, False)))
130130
@validate_transaction_errors(errors=[])
131131
@background_task(name="test_async_cross_process_request")
132-
@validate_cross_process_headers
132+
@validate_distributed_tracing_headers
133133
def test_async_cross_process_request(httpx, async_client, mock_server, loop, distributed_tracing, span_events):
134134
global DT_RESPONSE_CODE
135135
DT_RESPONSE_CODE = 200

tests/external_requests/test_requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import requests.exceptions
1818
from testing_support.external_fixtures import cache_outgoing_headers
1919
from testing_support.fixtures import override_application_settings, validate_tt_parenting
20-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
20+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2121
from testing_support.validators.validate_transaction_errors import validate_transaction_errors
2222
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2323

@@ -157,7 +157,7 @@ def test_requests_cross_process_request(distributed_tracing, span_events, server
157157
@validate_transaction_errors(errors=[])
158158
@background_task(name="test_requests:test_requests_cross_process_request")
159159
@cache_outgoing_headers
160-
@validate_cross_process_headers
160+
@validate_distributed_tracing_headers
161161
def _test():
162162
requests.get(f"http://localhost:{server.port}/")
163163

tests/external_urllib3/test_urllib3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from testing_support.external_fixtures import cache_outgoing_headers
2424
from testing_support.fixtures import override_application_settings
25-
from testing_support.validators.validate_cross_process_headers import validate_cross_process_headers
25+
from testing_support.validators.validate_distributed_tracing_headers import validate_distributed_tracing_headers
2626
from testing_support.validators.validate_transaction_errors import validate_transaction_errors
2727
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
2828

@@ -206,7 +206,7 @@ def test_urlopen_cross_process_request(distributed_tracing, span_events, server)
206206
@validate_transaction_errors(errors=[])
207207
@background_task(name="test_urllib3:test_urlopen_cross_process_request")
208208
@cache_outgoing_headers
209-
@validate_cross_process_headers
209+
@validate_distributed_tracing_headers
210210
def _test():
211211
pool = urllib3.HTTPConnectionPool(f"localhost:{server.port}")
212212
pool.urlopen("GET", "/")

tests/testing_support/validators/validate_cross_process_headers.py renamed to tests/testing_support/validators/validate_distributed_tracing_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
@function_wrapper
21-
def validate_cross_process_headers(wrapped, instance, args, kwargs):
21+
def validate_distributed_tracing_headers(wrapped, instance, args, kwargs):
2222
result = wrapped(*args, **kwargs)
2323

2424
transaction = current_transaction()

0 commit comments

Comments
 (0)