Skip to content

fix(flow-php/symfony-telemetry-bundle): run DBALTelemetryPass before DoctrineBundle's MiddlewaresPass#2476

Merged
norberttech merged 1 commit into
flow-php:1.xfrom
darenas31415:flow-telemetry-bundle-doctrine-pass-priority
Jun 22, 2026
Merged

fix(flow-php/symfony-telemetry-bundle): run DBALTelemetryPass before DoctrineBundle's MiddlewaresPass#2476
norberttech merged 1 commit into
flow-php:1.xfrom
darenas31415:flow-telemetry-bundle-doctrine-pass-priority

Conversation

@darenas31415

Copy link
Copy Markdown
Contributor

Both passes run at TYPE_BEFORE_OPTIMIZATION priority 0, so Symfony executes them in insertion order.

When DoctrineBundle is registered before FlowTelemetryBundle (likely to be a common case), MiddlewaresPass scans for doctrine.middleware tags before DBALTelemetryPass has registered the tracing middleware, silently producing no DBAL spans despite the service appearing correctly in debug:container.

Raising DBALTelemetryPass to priority 10 ensures it always runs first, regardless of bundle registration order.

Resolves: #xxx

Change Log


Added

Fixed

  • DBALTelemetryPass is now registered at priority 10 to guarantee it runs before DoctrineBundle's MiddlewaresPass, fixing silent DBAL tracing failure when DoctrineBundle precedes FlowTelemetryBundle in the kernel.

Changed

Removed

Deprecated

Security

…DoctrineBundle's MiddlewaresPass

Both passes run at TYPE_BEFORE_OPTIMIZATION priority 0, so Symfony executes them in insertion order.

When DoctrineBundle is registered before FlowTelemetryBundle (likely to be a common case), MiddlewaresPass scans for doctrine.middleware tags before DBALTelemetryPass has registered the tracing middleware, silently producing no DBAL spans despite the service appearing correctly in debug:container.

Raising DBALTelemetryPass to priority 10 ensures it always runs first, regardless of bundle registration order.
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.18%. Comparing base (6613fa6) to head (3479bdd).
⚠️ Report is 1 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x    #2476   +/-   ##
=========================================
  Coverage     85.18%   85.18%           
  Complexity    21432    21432           
=========================================
  Files          1622     1622           
  Lines         66195    66195           
=========================================
  Hits          56389    56389           
  Misses         9806     9806           
Components Coverage Δ
etl 88.43% <ø> (ø)
cli 89.40% <ø> (ø)
lib-array-dot 81.44% <ø> (ø)
lib-azure-sdk 64.44% <ø> (ø)
lib-doctrine-dbal-bulk 93.61% <ø> (ø)
lib-filesystem 85.03% <ø> (ø)
lib-types 90.06% <ø> (ø)
lib-parquet 70.10% <ø> (ø)
lib-parquet-viewer 82.26% <ø> (ø)
lib-snappy 89.82% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 88.59% <ø> (ø)
lib-telemetry 86.12% <ø> (ø)
bridge-filesystem-async-aws 92.74% <ø> (ø)
bridge-filesystem-azure 90.45% <ø> (ø)
bridge-monolog-http 96.82% <ø> (ø)
bridge-monolog-telemetry 94.11% <ø> (ø)
bridge-openapi-specification 92.07% <ø> (ø)
symfony-http-foundation 78.57% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 97.84% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 89.90% <ø> (ø)
bridge-symfony-http-foundation-telemetry 89.47% <ø> (ø)
bridge-symfony-filesystem-bundle 90.66% <ø> (ø)
bridge-symfony-filesystem-cache 98.14% <ø> (ø)
bridge-symfony-postgresql-bundle 93.39% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 81.83% <100.00%> (ø)
adapter-chartjs 84.05% <ø> (ø)
adapter-csv 91.16% <ø> (ø)
adapter-doctrine 90.79% <ø> (ø)
adapter-google-sheet 99.18% <ø> (ø)
adapter-http 72.34% <ø> (ø)
adapter-json 88.63% <ø> (ø)
adapter-logger 50.00% <ø> (ø)
adapter-parquet 77.70% <ø> (ø)
adapter-text 74.13% <ø> (ø)
adapter-xml 83.40% <ø> (ø)
adapter-avro 0.00% <ø> (ø)
adapter-excel 94.21% <ø> (ø)
adapter-postgresql 91.06% <ø> (ø)
adapter-seal 85.42% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 80.29% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech norberttech merged commit 126e2e6 into flow-php:1.x Jun 22, 2026
38 checks passed
@norberttech

Copy link
Copy Markdown
Member

Thank you! I'm going to add some extra tests in the next PR to cover this change

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants