Skip to content

Commit

Permalink
test: enable crashtracking during all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brettlangdon committed Oct 30, 2024
1 parent 2378740 commit a9840f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from ddtrace._trace.provider import _DD_CONTEXTVAR
from ddtrace.internal.compat import httplib
from ddtrace.internal.compat import parse
from ddtrace.internal.core import crashtracking
from ddtrace.internal.remoteconfig.client import RemoteConfigClient
from ddtrace.internal.remoteconfig.worker import remoteconfig_poller
from ddtrace.internal.runtime import get_runtime_id
Expand Down Expand Up @@ -113,6 +114,19 @@ def use_global_tracer():
yield False


@pytest.fixture
def auto_enable_crashtracking():
yield True


@pytest.fixture(autouse=True)
def enable_crashtracking(auto_enable_crashtracking):
if auto_enable_crashtracking:
crashtracking.start()
assert crashtracking.is_started()
yield


@pytest.fixture
def tracer(use_global_tracer):
if use_global_tracer:
Expand Down

0 comments on commit a9840f5

Please sign in to comment.