Skip to content

refactor(flow-php/symfony-postgresql-bundle): own the profiler client - #2571

Merged
norberttech merged 1 commit into
1.xfrom
symofny-postgresql-profiler-client
Jul 30, 2026
Merged

refactor(flow-php/symfony-postgresql-bundle): own the profiler client#2571
norberttech merged 1 commit into
1.xfrom
symofny-postgresql-profiler-client

Conversation

@norberttech

Copy link
Copy Markdown
Member

Change Log


Added

  • flow-php/symfony-postgresql-bundle - profiler.max_query_length option bounding retained statements
  • flow-php/symfony-postgresql-bundle - panel marks truncated statements and excludes them from EXPLAIN

Fixed

  • flow-php/symfony-postgresql-bundle - long running console commands no longer retain queries for a panel that never renders

Changed

  • flow-php/symfony-postgresql-bundle - query recording moved from flow-php/postgresql as ProfilerClient, QueryRecorder and QueryRecorderOptions
  • flow-php/symfony-postgresql-bundle - profiler registers only when the kernel runs in debug mode, so --no-debug records nothing
  • flow-php/symfony-postgresql-bundle - profiler.max_parameters renamed to profiler.max_retained_parameters
  • flow-php/symfony-postgresql-bundle - service flow.postgresql.profiler.query_log renamed to flow.postgresql.profiler.query_recorder

Removed

  • flow-php/postgresql - Client\Debug namespace with RecordingClient, QueryLog, QueryLogOptions and RecordedQuery

Deprecated

Security

- move RecordingClient, QueryLog, QueryLogOptions and RecordedQuery out
of flow-php/postgresql as ProfilerClient, QueryRecorder,
QueryRecorderOptions
- register the panel only in debug mode, so --no-debug records nothing
- bound retained statements with profiler.max_query_length
- rename profiler.max_parameters to max_retained_parameters
- mark truncated statements in the panel and exclude them from EXPLAIN
@norberttech norberttech added this to the 0.43.0 milestone Jul 30, 2026
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.32836% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.27%. Comparing base (3de374a) to head (5b683c3).
⚠️ Report is 4 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x    #2571      +/-   ##
============================================
- Coverage     86.51%   86.27%   -0.24%     
- Complexity    23235    23661     +426     
============================================
  Files          1812     1816       +4     
  Lines         71549    71840     +291     
============================================
+ Hits          61898    61981      +83     
- Misses         9651     9859     +208     
Components Coverage Δ
etl 90.80% <ø> (ø)
cli 89.40% <ø> (ø)
lib-array-dot 81.44% <ø> (ø)
lib-azure-sdk 64.44% <ø> (ø)
lib-doctrine-dbal-bulk 93.61% <ø> (ø)
lib-filesystem 86.67% <ø> (ø)
lib-types 91.58% <ø> (ø)
lib-parquet 70.23% <ø> (ø)
lib-parquet-viewer 82.26% <ø> (ø)
lib-snappy 89.82% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 87.74% <ø> (-0.89%) ⬇️
lib-telemetry 86.58% <ø> (ø)
bridge-filesystem-async-aws 92.74% <ø> (ø)
bridge-filesystem-azure 90.45% <ø> (ø)
bridge-monolog-http 96.82% <ø> (ø)
bridge-monolog-telemetry 94.79% <ø> (ø)
bridge-openapi-specification 92.07% <ø> (ø)
symfony-http-foundation 78.57% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 91.85% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.57% <84.32%> (-0.13%) ⬇️
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.24% <ø> (ø)
adapter-chartjs 84.05% <ø> (ø)
adapter-csv 89.46% <ø> (ø)
adapter-doctrine 90.75% <ø> (ø)
adapter-google-sheet 91.56% <ø> (ø)
adapter-http 75.79% <ø> (ø)
adapter-json 87.66% <ø> (ø)
adapter-logger 50.00% <ø> (ø)
adapter-parquet 88.69% <ø> (ø)
adapter-text 92.59% <ø> (ø)
adapter-xml 84.27% <ø> (ø)
adapter-avro 0.00% <ø> (ø)
adapter-excel 87.20% <ø> (ø)
adapter-postgresql 90.84% <ø> (ø)
adapter-seal 83.26% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
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 8316c04 into 1.x Jul 30, 2026
46 of 48 checks passed
@norberttech
norberttech deleted the symofny-postgresql-profiler-client branch July 30, 2026 15:19
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant