Skip to content

feat: add support for dbal 4#80

Open
d-mitrofanov-v wants to merge 2 commits intoworldia:masterfrom
d-mitrofanov-v:feat/add-support-for-dbal-4
Open

feat: add support for dbal 4#80
d-mitrofanov-v wants to merge 2 commits intoworldia:masterfrom
d-mitrofanov-v:feat/add-support-for-dbal-4

Conversation

@d-mitrofanov-v
Copy link

@d-mitrofanov-v d-mitrofanov-v commented Sep 27, 2025

Added support for dbal 4, that should fix #79

As it's a breaking change, it probably should go in version 3 of instrumentation-bundle 🤔


Note

Update Doctrine DBAL instrumentation/propagation to DBAL 4 APIs and switch DB attributes to new semconv keys.

  • Doctrine DBAL (Instrumentation & Propagation):
    • Adjust method signatures to DBAL 4 (quote, exec, lastInsertId, beginTransaction/commit/rollBack now void).
    • Add getServerVersion() passthrough; refine getNativeConnection() return phpdoc.
    • Update drivers to DBAL 4 platform API: use ServerVersionProvider and StaticServerVersionProvider; remove legacy schema-related methods.
  • Semantics:
    • Replace TraceAttributes with DbAttributes/NetworkAttributes/ServerAttributes and migrate keys (e.g., db.system.name, db.namespace).
    • Update platform class references (SQLitePlatform).
  • Tests: Align expectations with new attribute keys and platform class.
  • Composer: Bump doctrine/dbal dev requirement to ^4.0.

Written by Cursor Bugbot for commit f9a7277. This will update automatically on new commits. Configure here.

@d-mitrofanov-v d-mitrofanov-v changed the title Feat/add support for dbal 4 feat: add support for dbal 4 Sep 27, 2025
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.

Bundle is not compatible with doctrine/dbal 4.0

1 participant