Skip to content

fix(flow-php/symfony-telemetry-bundle): resolve definition classes in compiler passes - #2584

Merged
norberttech merged 1 commit into
1.xfrom
cache-http-autoinstrumentation-bug
Aug 6, 2026
Merged

fix(flow-php/symfony-telemetry-bundle): resolve definition classes in compiler passes#2584
norberttech merged 1 commit into
1.xfrom
cache-http-autoinstrumentation-bug

Conversation

@norberttech

Copy link
Copy Markdown
Member

Resolves: #xxx

Change Log


Added

  • flow-php/symfony-telemetry-bundle - DefinitionClassResolver resolving a definition class through parent chains and %parameter% placeholders
  • flow-php/symfony-telemetry-bundle - ServiceIdPatterns matching a service id against exact ids and regular expressions
  • flow-php/symfony-telemetry-bundle - unit and integration tests for CacheTelemetryPass and Psr18ClientTelemetryPass

Fixed

  • flow-php/symfony-telemetry-bundle - cache pools inheriting their class from a parent definition are now traced
  • flow-php/symfony-telemetry-bundle - pools and PSR-18 clients whose class is a %parameter% are now traced
  • flow-php/symfony-telemetry-bundle - Psr18ClientTelemetryPass no longer decorates abstract definitions and breaks the container build
  • flow-php/symfony-telemetry-bundle - instrumentation.cache.exclude_pools now takes effect for framework pools

Changed

  • flow-php/symfony-telemetry-bundle - class lookup uses ContainerBuilder::getReflectionClass() so container invalidation resources are registered
  • flow-php/symfony-telemetry-bundle - exclude pattern matching extracted out of the compiler passes into ServiceIdPatterns

Removed

Deprecated

Security

… compiler passes

- add DefinitionClassResolver walking parent chains and %parameter%
classes
- trace cache pools inheriting their class from a parent
- skip abstract definitions in Psr18ClientTelemetryPass, fixing
container build crash
- register invalidation resources via getReflectionClass() instead of
class_exists()
- extract duplicated exclude-pattern matching into ServiceIdPatterns
@norberttech norberttech added this to the 0.43.0 milestone Aug 6, 2026
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.31%. Comparing base (00c3c77) to head (e084710).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x    #2584   +/-   ##
=========================================
  Coverage     86.30%   86.31%           
+ Complexity    23675    23673    -2     
=========================================
  Files          1816     1818    +2     
  Lines         71924    71921    -3     
=========================================
+ Hits          62076    62080    +4     
+ Misses         9848     9841    -7     
Components Coverage Δ
etl 90.81% <ø> (ø)
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% <ø> (+0.44%) ⬆️
lib-dremel 0.00% <ø> (ø)
lib-postgresql 87.74% <ø> (ø)
lib-telemetry 86.64% <ø> (ø)
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% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.68% <100.00%> (+0.11%) ⬆️
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 94ba879 into 1.x Aug 6, 2026
48 checks passed
@norberttech
norberttech deleted the cache-http-autoinstrumentation-bug branch August 6, 2026 10:28
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Aug 6, 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