File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1313from ddtrace .internal .telemetry .data import get_application
1414from ddtrace .internal .telemetry .data import get_host_info
1515from ddtrace .internal .telemetry .data import get_hostname
16- from tests .utils import process_tag_reload
1716
1817
1918def test_get_application ():
@@ -44,18 +43,12 @@ def test_get_application_with_values():
4443 assert application ["env" ] == "staging"
4544
4645
46+ @pytest .mark .subprocess (env = {"DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED" : "True" })
4747def test_get_application_with_process_tags ():
48- from ddtrace .internal .settings . _config import config
48+ from ddtrace .internal .telemetry . data import get_application
4949
50- try :
51- config ._process_tags_enabled = True
52- process_tag_reload ()
53-
54- application = get_application ("" , "" , "" )
55- assert "process_tags" in application
56- finally :
57- config ._process_tags_enabled = False
58- process_tag_reload ()
50+ application = get_application ("" , "" , "" )
51+ assert "process_tags" in application
5952
6053
6154def test_application_with_setenv (run_python_code_in_subprocess , monkeypatch ):
You can’t perform that action at this time.
0 commit comments