33import pytest
44
55from ddtrace .internal import process_tags
6- from ddtrace .internal .process_tags import _process_tag_reload
76from ddtrace .internal .process_tags import normalize_tag
8- from ddtrace .settings ._config import config
7+ from ddtrace .internal . settings ._config import config
98from tests .subprocesstest import run_in_subprocess
109from tests .utils import TracerTestCase
10+ from tests .utils import process_tag_reload
1111
1212
1313@pytest .mark .parametrize (
@@ -50,7 +50,7 @@ def tearDown(self):
5050 @pytest .mark .snapshot
5151 def test_process_tags_deactivated (self ):
5252 config ._process_tags_enabled = False
53- _process_tag_reload ()
53+ process_tag_reload ()
5454
5555 with self .tracer .trace ("test" ):
5656 pass
@@ -59,7 +59,7 @@ def test_process_tags_deactivated(self):
5959 def test_process_tags_activated (self ):
6060 with patch ("sys.argv" , ["/path/to/test_script.py" ]), patch ("os.getcwd" , return_value = "/path/to/workdir" ):
6161 config ._process_tags_enabled = True
62- _process_tag_reload ()
62+ process_tag_reload ()
6363
6464 with self .tracer .trace ("parent" ):
6565 with self .tracer .trace ("child" ):
@@ -69,7 +69,7 @@ def test_process_tags_activated(self):
6969 def test_process_tags_edge_case (self ):
7070 with patch ("sys.argv" , ["/test_script" ]), patch ("os.getcwd" , return_value = "/path/to/workdir" ):
7171 config ._process_tags_enabled = True
72- _process_tag_reload ()
72+ process_tag_reload ()
7373
7474 with self .tracer .trace ("span" ):
7575 pass
@@ -81,7 +81,7 @@ def test_process_tags_error(self):
8181
8282 with self .override_global_config (dict (_telemetry_enabled = False )):
8383 with patch ("ddtrace.internal.process_tags.log" ) as mock_log :
84- _process_tag_reload ()
84+ process_tag_reload ()
8585
8686 with self .tracer .trace ("span" ):
8787 pass
@@ -96,7 +96,7 @@ def test_process_tags_error(self):
9696 def test_process_tags_partial_flush (self ):
9797 with patch ("sys.argv" , ["/path/to/test_script.py" ]), patch ("os.getcwd" , return_value = "/path/to/workdir" ):
9898 config ._process_tags_enabled = True
99- _process_tag_reload ()
99+ process_tag_reload ()
100100
101101 with self .override_global_config (dict (_partial_flush_enabled = True , _partial_flush_min_spans = 2 )):
102102 with self .tracer .trace ("parent" ):
0 commit comments