Skip to content

feat: Add db.driver.name spans to database integrations#6082

Open
ericapisani wants to merge 3 commits intomasterfrom
ep/db-exploration-73s
Open

feat: Add db.driver.name spans to database integrations#6082
ericapisani wants to merge 3 commits intomasterfrom
ep/db-exploration-73s

Conversation

@ericapisani
Copy link
Copy Markdown
Member

Adds db.driver.name spans to the following integrations:

  • asyncpg
  • clickhouse_driver
  • pymongo
  • redis
  • sqlalchemy

Adding this attribute for database queries made using the Django integration will be done as part of PY-2377 / #6081 because it's less straightforward to get the underlying database driver used.

Fixes PY-2376
Fixes #6080

Adds `db.driver.name` spans to the following integrations:
- asyncpg
- clickhouse_driver
- pymongo
- redis
- sqlalchemy

Adding this attribute for database queries made using the Django
integration will be done as part of PY-2377 / #6081 because it's less
straightforward to get the underlying database driver used.

Fixes PY-2376
Fixes #6080
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 15, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (ci) Cancel in-progress PR workflows on new commit push by joshuarli in #5994
  • Add db.driver.name spans to database integrations by ericapisani in #6082

Bug Fixes 🐛

  • (google_genai) Redact binary data in inline_data and fix multi-part message extraction by ericapisani in #5977
  • (profiler) Stop nulling buffer on teardown by ericapisani in #6075

Internal Changes 🔧

  • (celery) Remove unused NoOpMgr from utils by sentrivana in #6078
  • (pydantic-ai) Remove dead Model.request patch by alexander-alderman-webb in #5956
  • (tests) Replace deprecated enable_tracingwith traces_sample_rate by sentrivana in #6077
  • Set explicit base-branch for codecov action by ericapisani in #5992

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

Codecov Results 📊

2115 passed | ⏭️ 153 skipped | Total: 2268 | Pass Rate: 93.25% | Execution Time: 3m 58s

All tests are passing successfully.

❌ Patch coverage is 15.38%. Project has 12429 uncovered lines.

Files with missing lines (6)
File Patch % Lines
pymongo.py 10.08% ⚠️ 107 Missing
asyncpg.py 11.86% ⚠️ 104 Missing
clickhouse_driver.py 17.39% ⚠️ 76 Missing
sqlalchemy.py 9.52% ⚠️ 76 Missing
queries.py 25.00% ⚠️ 24 Missing
consts.py 99.43% ⚠️ 2 Missing

Generated by Codecov Action

Comment thread tests/integrations/asyncpg/test_asyncpg.py Outdated
@ericapisani ericapisani marked this pull request as ready for review April 15, 2026 16:42
@ericapisani ericapisani requested a review from a team as a code owner April 15, 2026 16:42
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.

Set the db.driver.name on database integration spans

1 participant