Skip to content

ref: Use top-level API throughout the SDK - #7578

Merged
sentrivana merged 4 commits into
major/3.0from
ivana/major/use-top-level-api
Sep 23, 2026
Merged

sentrivana merged 4 commits into
major/3.0from
ivana/major/use-top-level-api

Conversation

@sentrivana

Copy link
Copy Markdown
Contributor

Boost the likelihood that agents learn the correct API when exploring our SDK code.

@sentrivana sentrivana changed the title Ivana/major/use top level api ref: Use top-level API throughout the SDK Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

66885 passed | ❌ 3 failed | ⏭️ 3019 skipped | Total: 69907 | Pass Rate: 95.68% | Execution Time: 187m 21s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -66572
Passed Tests 📉 -62445
Failed Tests 📈 +2
Skipped Tests 📉 -4129

➕ New Tests (2)

View new tests
  • test_input_attributes_nonstreaming_chat[True-messages0-expected_system_instructions0-expected_input_messages0]
    • File: tests.integrations.mistral.test_mistral
    • Status: ❌ Failing
  • test_cache_prefixes
    • File: tests.integrations.redis.test_redis_cache_module
    • Status: ❌ Failing

➖ Removed Tests (1)

View removed tests
  • test_cache_spans_decorator[True]
    • File: tests.integrations.django.test_cache_module

❌ Failed Tests

test_input_attributes_nonstreaming_chat[True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.0.5
Error: KeyError: 140207267094528

Stack Trace
tests/integrations/mistral/test_mistral.py:380: in test_input_attributes_nonstreaming_chat
    sentry_init(
tests/conftest.py:349: in inner
    client = sentry_sdk.Client(*a, **kw)
sentry_sdk/client.py:278: in __init__
    self._init_impl()
sentry_sdk/client.py:428: in _init_impl
    self.integrations = setup_integrations(
sentry_sdk/integrations/__init__.py:216: in setup_integrations
    for integration_cls in iter_default_integrations(
sentry_sdk/integrations/__init__.py:44: in iter_default_integrations
    yield getattr(import_module(module), cls)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1024: in _find_and_load
    ???
<frozen importlib._bootstrap>:171: in __enter__
    ???
<frozen importlib._bootstrap>:123: in acquire
    ???
E   KeyError: 140207267094528

test_cache_prefixes

File: tests.integrations.redis.test_redis_cache_module
Suite: py3.11-redis-v4.6.0
Error: AssertionError: assert '演=\x085H\U00042f45\x1b]L#3, yes' == ', yes' - , yes + 演=#x085H#x42F45#x1B]L#3, yes

Stack Trace
tests/integrations/redis/test_redis_cache_module.py:278: in test_cache_prefixes
    assert cache_spans[4]["name"] == ", yes"
E   AssertionError: assert '演=\x085H\U00042f45\x1b]L#3, yes' == ', yes'
E     - , yes
E     + 演=#x085H#x42F45#x1B]L#3, yes

✅ Patch coverage is 94.79%. Project has 2085 uncovered lines.
❌ Project coverage is 90.14%. Comparing base (35f70d2) to head (84ea662).

Files with missing lines (20)
File Patch % Lines
sentry_sdk/integrations/litestar.py 100.00% ⚠️ 3 partials
sentry_sdk/integrations/ray.py 50.00% ⚠️ 2 Missing and 1 partials
sentry_sdk/integrations/asgi.py 50.00% ⚠️ 2 Missing
sentry_sdk/integrations/aws_lambda.py 0.00% ⚠️ 2 Missing
sentry_sdk/integrations/django/init.py 100.00% ⚠️ 2 partials
sentry_sdk/integrations/django/templates.py 100.00% ⚠️ 2 partials
sentry_sdk/integrations/django/views.py 100.00% ⚠️ 2 partials
sentry_sdk/integrations/gcp.py 0.00% ⚠️ 2 Missing
sentry_sdk/integrations/socket.py 100.00% ⚠️ 2 partials
sentry_sdk/integrations/boto3.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/celery/init.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/django/caching.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/django/middleware.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/google_genai/init.py 83.33% ⚠️ 1 Missing
sentry_sdk/integrations/grpc/aio/client.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/grpc/client.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/langchain.py 75.00% ⚠️ 1 Missing
sentry_sdk/integrations/starlette.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/starlite.py 100.00% ⚠️ 1 partials
sentry_sdk/integrations/strawberry.py 100.00% ⚠️ 1 partials
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.21%    90.14%    -0.07%
==========================================
  Files          194       180       -14
  Lines        25997     21155     -4842
  Branches      9662      7656     -2006
==========================================
+ Hits         23454     19070     -4384
- Misses        2543      2085      -458
- Partials      1451      1198      -253

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review September 22, 2026 12:25
@sentrivana
sentrivana requested a review from a team as a code owner September 22, 2026 12:25
@sentrivana
sentrivana merged commit e7f379e into major/3.0 Sep 23, 2026
143 of 147 checks passed
@sentrivana
sentrivana deleted the ivana/major/use-top-level-api branch September 23, 2026 07:07
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.

2 participants