Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(integrations): remove deprecated internal modules [asyncio,gevent] #12245

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions ddtrace/contrib/internal/asyncio/compat.py

This file was deleted.

105 changes: 0 additions & 105 deletions ddtrace/contrib/internal/asyncio/helpers.py

This file was deleted.

83 changes: 0 additions & 83 deletions ddtrace/contrib/internal/asyncio/provider.py

This file was deleted.

25 changes: 0 additions & 25 deletions ddtrace/contrib/internal/asyncio/wrappers.py

This file was deleted.

47 changes: 0 additions & 47 deletions ddtrace/contrib/internal/gevent/provider.py

This file was deleted.

15 changes: 0 additions & 15 deletions tests/contrib/asyncio/test_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pytest

from ddtrace.constants import ERROR_MSG
from ddtrace.contrib.internal.asyncio.compat import asyncio_current_task
from ddtrace.contrib.internal.asyncio.patch import patch
from ddtrace.contrib.internal.asyncio.patch import unpatch

Expand Down Expand Up @@ -65,20 +64,6 @@ def test_event_loop_exception(tracer):
assert ctx is None


def test_context_task_none(tracer):
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
# it should handle the case where a Task is not available
# Note: the @pytest.mark.asyncio is missing to simulate an execution
# without a Task
task = asyncio_current_task()
# the task is not available
assert task is None

ctx = tracer.current_trace_context()
assert ctx is None


@pytest.mark.asyncio
async def test_exception(tracer):
async def f1():
Expand Down
Loading