Skip to content

Commit aea4125

Browse files
committed
chore(profiling): remove deprecated env var, DD_PROFILING_API_TIMEOUT
1 parent 1f48e2c commit aea4125

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ddtrace/internal/settings/profiling.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,27 +85,6 @@ def _parse_profiling_enabled(raw: str) -> bool:
8585
return False
8686

8787

88-
def _parse_api_timeout_ms(raw: str) -> int:
89-
# Check if the deprecated DD_PROFILING_API_TIMEOUT is set (in seconds)
90-
deprecated_timeout = os.environ.get("DD_PROFILING_API_TIMEOUT")
91-
if deprecated_timeout is not None:
92-
from ddtrace.internal.utils.deprecations import DDTraceDeprecationWarning
93-
from ddtrace.vendor.debtcollector import deprecate
94-
95-
deprecate(
96-
"DD_PROFILING_API_TIMEOUT is deprecated",
97-
message="DD_PROFILING_API_TIMEOUT (in seconds) is deprecated and will be removed in version 4.0.0. "
98-
"Please use DD_PROFILING_API_TIMEOUT_MS (in milliseconds) instead.",
99-
category=DDTraceDeprecationWarning,
100-
removal_version="4.0.0",
101-
)
102-
# Convert seconds to milliseconds
103-
return int(float(deprecated_timeout) * 1000)
104-
105-
# Otherwise, use the raw value (in milliseconds)
106-
return int(raw)
107-
108-
10988
def _update_git_metadata_tags(tags):
11089
"""
11190
Update profiler tags with git metadata
@@ -226,7 +205,6 @@ class ProfilingConfig(DDConfig):
226205
api_timeout_ms = DDConfig.v(
227206
int,
228207
"api_timeout_ms",
229-
parser=_parse_api_timeout_ms,
230208
default=10000,
231209
help_type="Integer",
232210
help="The timeout in milliseconds before dropping events if the HTTP API does not reply",

0 commit comments

Comments
 (0)