Skip to content

Commit

Permalink
Merge branch 'main' into avara1986/SCRS-1210_improve_iast_startup_time
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 authored Dec 23, 2024
2 parents 4747766 + 998ee2c commit 6141006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ddtrace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
from .version import get_version # noqa: E402


# TODO(mabdinur): Remove this once we have a better way to start the mini agent
from ddtrace.internal.serverless.mini_agent import maybe_start_serverless_mini_agent as _start_mini_agent

_start_mini_agent()

# DEV: Import deprecated tracer module in order to retain side-effect of package
# initialization, which added this module to sys.modules. We catch deprecation
# warnings as this is only to retain a side effect of the package
Expand Down
3 changes: 0 additions & 3 deletions ddtrace/_trace/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
from ddtrace.internal.serverless import in_aws_lambda
from ddtrace.internal.serverless import in_azure_function
from ddtrace.internal.serverless import in_gcp_function
from ddtrace.internal.serverless.mini_agent import maybe_start_serverless_mini_agent
from ddtrace.internal.service import ServiceStatusError
from ddtrace.internal.utils import _get_metas_to_propagate
from ddtrace.internal.utils.deprecations import DDTraceDeprecationWarning
Expand Down Expand Up @@ -211,8 +210,6 @@ def __init__(
:param dogstatsd_url: The DogStatsD URL.
"""

maybe_start_serverless_mini_agent()

self._filters: List[TraceFilter] = []

# globally set tags
Expand Down

0 comments on commit 6141006

Please sign in to comment.