Skip to content

ref(httpx,httpx2): Move crumbs to integrations - #7149

Draft
sentrivana wants to merge 6 commits into
ivana/move-http-crumbs-2from
ivana/move-http-crumbs-3
Draft

ref(httpx,httpx2): Move crumbs to integrations#7149
sentrivana wants to merge 6 commits into
ivana/move-http-crumbs-2from
ivana/move-http-crumbs-3

Conversation

@sentrivana

@sentrivana sentrivana commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Description

Move breadcrumbs from the centralized, span-powered maybe_create_breadcrumbs_from_span directly to the HTTPX and HTTPX2 integrations. (Put the two together in one PR since they're the same changeset.)

Additional changes:

  • Running the async breadcrumb tests with pytest-asyncio now, as that simulates how the scopes behave live better than setting up an ad-hoc event loop.
  • Split the tests into span streaming/not span streaming (because of the difference in send_default_pii behavior)

Issues

Reminders

"reason": rv.reason_phrase,
}

if parsed_url and (not is_span_streaming_enabled or should_send_default_pii()):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The is_not_span_streaming_enabled part is there for continuity in transaction mode, where we don't care about should_send_default_pii before setting breadcrumb data.

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

102197 passed | ❌ 136 failed | ⏭️ 6624 skipped | Total: 108957 | Pass Rate: 93.8% | Execution Time: 362m 8s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +2726
Passed Tests 📈 +2637
Failed Tests 📈 +136
Skipped Tests 📉 -47

➕ New Tests (68)

View new tests
  • test_outgoing_trace_headers_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_append_to_baggage_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client9-None-https://example.com/-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client10-trace_propagation_targets10-https://example.com/-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client11-trace_propagation_targets11-https://example.com/-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client12-trace_propagation_targets12-https://example.com/-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client13-trace_propagation_targets13-https://example.com-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client14-trace_propagation_targets14-https://example.com-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client15-trace_propagation_targets15-https://example.net-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client16-trace_propagation_targets16-https://good.example.net-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client17-trace_propagation_targets17-https://good.example.net/some/thing-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_disabled_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_legacy[httpx_client1-None]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_legacy[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_with_module_in_search_path_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_no_request_source_if_duration_too_short_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_if_duration_over_threshold_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_span_origin_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_append_to_baggage_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_span_streaming_no_current_span_async
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_disabled_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_span_streaming[httpx_client1-None]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_with_module_in_search_path_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_no_request_source_if_duration_too_short_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_if_duration_over_threshold_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_span_origin_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_span_streaming[httpx_client1-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_append_to_baggage_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client9-None-https://example.com/-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client10-trace_propagation_targets10-https://example.com/-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client11-trace_propagation_targets11-https://example.com/-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client12-trace_propagation_targets12-https://example.com/-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client13-trace_propagation_targets13-https://example.com-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client14-trace_propagation_targets14-https://example.com-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client15-trace_propagation_targets15-https://example.net-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client16-trace_propagation_targets16-https://good.example.net-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_option_trace_propagation_targets[httpx_client17-trace_propagation_targets17-https://good.example.net/some/thing-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_disabled_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_legacy[httpx_client1-None]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_legacy[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_with_module_in_search_path_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_no_request_source_if_duration_too_short_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_if_duration_over_threshold_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_span_origin_legacy[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_append_to_baggage_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_outgoing_trace_headers_span_streaming_no_current_span_async
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_disabled_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_span_streaming[httpx_client1-None]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_enabled_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_with_module_in_search_path_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_no_request_source_if_duration_too_short_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_request_source_if_duration_over_threshold_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_span_origin_span_streaming[httpx_client1]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_span_streaming[httpx_client1-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-True]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing
  • test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-False]
    • File: tests.integrations.httpx.test_httpx
    • Status: ❌ Failing

❌ Failed Tests

test_outgoing_trace_headers_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:460: in test_outgoing_trace_headers_legacy
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_append_to_baggage_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:503: in test_outgoing_trace_headers_append_to_baggage_legacy
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client9-None-https://example.com/-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client10-trace_propagation_targets10-https://example.com/-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client11-trace_propagation_targets11-https://example.com/-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client12-trace_propagation_targets12-https://example.com/-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client13-trace_propagation_targets13-https://example.com-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client14-trace_propagation_targets14-https://example.com-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client15-trace_propagation_targets15-https://example.net-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client16-trace_propagation_targets16-https://good.example.net-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client17-trace_propagation_targets17-https://good.example.net/some/thing-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_disabled_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:741: in test_request_source_disabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_legacy[httpx_client1-None]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:787: in test_request_source_enabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_legacy[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:787: in test_request_source_enabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:824: in test_request_source_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_with_module_in_search_path_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:879: in test_request_source_with_module_in_search_path_legacy
    asyncio.get_event_loop().run_until_complete(
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_no_request_source_if_duration_too_short_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:936: in test_no_request_source_if_duration_too_short_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_if_duration_over_threshold_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:976: in test_request_source_if_duration_over_threshold_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_span_origin_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1026: in test_span_origin_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1065: in test_outgoing_trace_headers_span_streaming
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_append_to_baggage_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1110: in test_outgoing_trace_headers_append_to_baggage_span_streaming
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_span_streaming_no_current_span_async

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1193: in test_outgoing_trace_headers_span_streaming_no_current_span_async
    response = asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_disabled_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1231: in test_request_source_disabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_span_streaming[httpx_client1-None]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1276: in test_request_source_enabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1276: in test_request_source_enabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1313: in test_request_source_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_with_module_in_search_path_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1373: in test_request_source_with_module_in_search_path_span_streaming
    asyncio.get_event_loop().run_until_complete(
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_no_request_source_if_duration_too_short_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1433: in test_no_request_source_if_duration_too_short_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_if_duration_over_threshold_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1471: in test_request_source_if_duration_over_threshold_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_span_origin_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1524: in test_span_origin_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1558: in test_http_url_attributes_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_span_streaming[httpx_client1-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1558: in test_http_url_attributes_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1602: in test_http_url_attributes_no_query_or_fragment_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.11-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1602: in test_http_url_attributes_no_query_or_fragment_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py:681: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:460: in test_outgoing_trace_headers_legacy
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_append_to_baggage_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:503: in test_outgoing_trace_headers_append_to_baggage_legacy
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client9-None-https://example.com/-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client10-trace_propagation_targets10-https://example.com/-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client11-trace_propagation_targets11-https://example.com/-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client12-trace_propagation_targets12-https://example.com/-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client13-trace_propagation_targets13-https://example.com-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client14-trace_propagation_targets14-https://example.com-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client15-trace_propagation_targets15-https://example.net-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client16-trace_propagation_targets16-https://good.example.net-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_option_trace_propagation_targets[httpx_client17-trace_propagation_targets17-https://good.example.net/some/thing-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:656: in test_option_trace_propagation_targets
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_disabled_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:741: in test_request_source_disabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_legacy[httpx_client1-None]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:787: in test_request_source_enabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_legacy[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:787: in test_request_source_enabled_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:824: in test_request_source_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_with_module_in_search_path_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:879: in test_request_source_with_module_in_search_path_legacy
    asyncio.get_event_loop().run_until_complete(
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_no_request_source_if_duration_too_short_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:936: in test_no_request_source_if_duration_too_short_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_if_duration_over_threshold_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:976: in test_request_source_if_duration_over_threshold_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_span_origin_legacy[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1026: in test_span_origin_legacy
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1065: in test_outgoing_trace_headers_span_streaming
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_append_to_baggage_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1110: in test_outgoing_trace_headers_append_to_baggage_span_streaming
    response = asyncio.get_event_loop().run_until_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_outgoing_trace_headers_span_streaming_no_current_span_async

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1193: in test_outgoing_trace_headers_span_streaming_no_current_span_async
    response = asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
               ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_disabled_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1231: in test_request_source_disabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_span_streaming[httpx_client1-None]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1276: in test_request_source_enabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_enabled_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1276: in test_request_source_enabled_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1313: in test_request_source_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_with_module_in_search_path_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1373: in test_request_source_with_module_in_search_path_span_streaming
    asyncio.get_event_loop().run_until_complete(
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_no_request_source_if_duration_too_short_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1433: in test_no_request_source_if_duration_too_short_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_request_source_if_duration_over_threshold_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1471: in test_request_source_if_duration_over_threshold_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_span_origin_span_streaming[httpx_client1]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1524: in test_span_origin_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1558: in test_http_url_attributes_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_span_streaming[httpx_client1-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1558: in test_http_url_attributes_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-True]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1602: in test_http_url_attributes_no_query_or_fragment_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

test_http_url_attributes_no_query_or_fragment_span_streaming[httpx_client1-False]

File: tests.integrations.httpx.test_httpx
Suite: py3.12-httpx-v0.28.1
Error: RuntimeError: There is no current event loop in thread 'MainThread'.

Stack Trace
tests/integrations/httpx/test_httpx.py:1602: in test_http_url_attributes_no_query_or_fragment_span_streaming
    asyncio.get_event_loop().run_until_complete(httpx_client.get(url))
    ^^^^^^^^^^^^^^^^^^^^^^^^
../../_temp/uv-python-dir/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/asyncio/events.py:702: in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
E   RuntimeError: There is no current event loop in thread 'MainThread'.

✅ Patch coverage is 100.00%. Project has 2498 uncovered lines.
✅ Project coverage is 90.04%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.00%    90.04%    +0.04%
==========================================
  Files          193       193         —
  Lines        25073     25070        -3
  Branches      9066      9056       -10
==========================================
+ Hits         22564     22572        +8
- Misses        2509      2498       -11
- Partials      1440      1435        -5

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant