Skip to content

feat(telemetry): standardize emitted metric names and add messenger metric#2495

Merged
norberttech merged 1 commit into
1.xfrom
messenger-worker-mode-regression
Jun 30, 2026
Merged

feat(telemetry): standardize emitted metric names and add messenger metric#2495
norberttech merged 1 commit into
1.xfrom
messenger-worker-mode-regression

Conversation

@norberttech

Copy link
Copy Markdown
Member

Change Log


Added

  • flow-php/symfony-telemetry-bundle - messenger instrumentation emits messaging metrics (consumed/sent counters, process duration histogram) with configurable unit and on/off toggle

Fixed

  • flow-php/postgresql - operation duration histogram uses correct second-scale bucket boundaries

Changed

  • flow-php/etl - emitted metric names standardized to flow.etl.* and flow.cache.*
  • flow-php/filesystem - emitted metric names standardized to flow.filesystem.*
  • flow-php/postgresql - metric names aligned to OTEL db.client.* semantic conventions
  • flow-php/symfony-telemetry-bundle - cache metric names changed to flow.cache.*
  • flow-php/phpunit-telemetry-bridge - metric names folded under flow.phpunit.*
  • flow-php/telemetry - docblock metric name examples updated

Removed

Deprecated

Security

…etric

- rename metrics to namespaced keys: flow.etl.rows.*, flow.cache.*,
flow.filesystem.*, flow.phpunit.*, db.client.*
- emit messaging metrics for consumed/sent messages and process duration
- add messenger `metrics` and `metrics_duration_unit` config (s|ms)
- remove messenger `link_to_worker` and the `flow.messenger.worker` span
link
- add histogram bucket boundaries to postgresql duration/row metrics
- document new metrics and add upgrade notes
@norberttech norberttech added this to the 0.41.0 milestone Jun 30, 2026
@datadog-official

datadog-official Bot commented Jun 30, 2026

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

🚦 2 Pipeline jobs failed

Test Suite | phpunit-telemetry-tests / tests (12, 8.3)   View in Datadog   GitHub Actions

Test Suite | phpunit-telemetry-tests / tests (12, 8.5)   View in Datadog   GitHub Actions

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4873019 | Docs | Give us feedback!

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.53086% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.74%. Comparing base (29a69d6) to head (4873019).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x    #2495      +/-   ##
============================================
+ Coverage     85.73%   85.74%   +0.01%     
- Complexity        0    21706   +21706     
============================================
  Files          1640     1641       +1     
  Lines         66951    67002      +51     
============================================
+ Hits          57402    57454      +52     
+ Misses         9549     9548       -1     
Components Coverage Δ
etl 88.53% <100.00%> (-0.01%) ⬇️
cli 89.40% <ø> (ø)
lib-array-dot 81.44% <ø> (ø)
lib-azure-sdk 64.44% <ø> (ø)
lib-doctrine-dbal-bulk 93.61% <ø> (ø)
lib-filesystem 85.03% <100.00%> (ø)
lib-types 90.06% <ø> (ø)
lib-parquet 70.10% <ø> (ø)
lib-parquet-viewer 82.26% <ø> (ø)
lib-snappy 89.82% <ø> (+0.44%) ⬆️
lib-dremel 0.00% <ø> (ø)
lib-postgresql 88.62% <100.00%> (+<0.01%) ⬆️
lib-telemetry 86.16% <ø> (ø)
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.41% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 90.66% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.38% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 89.64% <100.00%> (+0.13%) ⬆️
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.41% <77.77%> (ø)
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 f9a1462 into 1.x Jun 30, 2026
67 of 70 checks passed
@norberttech norberttech deleted the messenger-worker-mode-regression branch June 30, 2026 13:38
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Jun 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