Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces enhancements to replication polling telemetry, updates to PromEx tenant metrics, and a version bump for the
realtimeapplication. The most significant changes include adding telemetry for replication polling queries, extending PromEx metrics to include replication-related data, and fixing event name mismatches for channel metrics.Enhancements to telemetry and metrics:
lib/extensions/postgres_cdc_rls/replication_poller.ex: Added telemetry to measure the duration of replication polling queries using:timer.tcand report the data toRealtime.Telemetry. This provides better visibility into query performance.lib/realtime/monitoring/prom_ex/plugins/tenant.ex: Introduced a newreplication_metrics/0function to track the duration of replication polling queries. This includes a histogram distribution metric with configurable buckets. [1] [2]Fixes and updates to existing metrics:
lib/realtime/monitoring/prom_ex/plugins/tenant.ex: Corrected event name mismatches in channel metrics for joins, ensuring accurate tracking of channel join events and their rate limits.Version bump:
mix.exs: Updated the application version from2.7.1to2.9.0to reflect the new features and improvements introduced in this release.