Skip to content

ref(attributes): Enforce sentry-conventions in db integrations - #8403

Draft
srothh wants to merge 2 commits into
srothh/add-conventions-dependencyfrom
srothh/conventions-db-integrations
Draft

srothh wants to merge 2 commits into
srothh/add-conventions-dependencyfrom
srothh/conventions-db-integrations

Conversation

@srothh

@srothh srothh commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Enforce sentry-conventions attribute names in db integrations (clickhouse_driver, pymongo, redis, sqlalchemy)

Issues

GH-8323
PY-3090

Enforce sentry-conventions attribute names in db integrations (clickhouse_driver, pymongo, redis, sqlalchemy

GH-8323
PY-3090
@linear-code

linear-code Bot commented Nov 26, 2026

Copy link
Copy Markdown

PY-3090

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 59240 passed | ❌ 1 failed | ⏭️ 3047 skipped | Total: 62288 | Pass Rate: 95.11% | Execution Time: 167m 30s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -288
Passed Tests 📉 -217
Failed Tests 📈 +1
Skipped Tests 📉 -72

➕ New Tests (1)

View new tests
  • test_db_transaction_spans_disabled_atomic
    • File: tests.integrations.django.test_db_transactions
    • Status: ❌ Failing

❌ Failed Tests

test_db_transaction_spans_disabled_atomic

File: tests.integrations.django.test_db_transactions
Suite: py3.12-django-v6.1.3
Error: tests/integrations/django/test_db_transactions.py:263: in test_db_transaction_spans_disabled_atomic assert postgres_commit["is_segment"] is True E assert False is True

Stack Trace
tests/integrations/django/test_db_transactions.py:263: in test_db_transaction_spans_disabled_atomic
    assert postgres_commit["is_segment"] is True
E   assert False is True

✅ Patch coverage is 97.10% (67 of 69 changed executable lines covered; target 80%).
Project statement coverage is 90.12%.

Changed files with executable lines (10)
File Patch coverage Changed executable lines
sentry_sdk/integrations/sqlalchemy.py 66.67% 4/6 covered; missed: 170, 174
sentry_sdk/integrations/aiomysql.py 100.00% 12/12 covered
sentry_sdk/integrations/asyncpg.py 100.00% 10/10 covered
sentry_sdk/integrations/clickhouse_driver.py 100.00% 7/7 covered
sentry_sdk/integrations/pymongo.py 100.00% 7/7 covered
sentry_sdk/integrations/redis/_async_common.py 100.00% 4/4 covered
sentry_sdk/integrations/redis/_sync_common.py 100.00% 4/4 covered
sentry_sdk/integrations/redis/modules/caches.py 100.00% 9/9 covered
sentry_sdk/integrations/redis/modules/queries.py 100.00% 7/7 covered
sentry_sdk/integrations/redis/utils.py 100.00% 3/3 covered

Generated by Coverage Action

Enforce sentry-conventions attribute names in db integration tests
(aiomysql, asyncpg, clickhouse_driver, pymongo, redis, redis_py_cluster_legacy, sqlalchemy).

GH-8323
PY-3090

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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