Skip to content

feat(metrics): histograms for bridge request latency and TOAST values per fetch - #255

Merged
harshil-goel merged 1 commit into
kaushik/source-lag-metricsfrom
kaushik/bridge-latency-histograms
Nov 19, 2026
Merged

harshil-goel merged 1 commit into
kaushik/source-lag-metricsfrom
kaushik/bridge-latency-histograms

Conversation

@iskakaushik

@iskakaushik iskakaushik commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Histograms where only means existed:

  • walshadow_request_duration_seconds{database,target="bridge",op}: 25 us doubling to 102.4 ms.
  • walshadow_toast_values_per_fetch: 1 doubling to 256.

Bucket bounds are part of the histogram type.

@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 9cdcbec to ed58b73 Compare November 10, 2026 18:13
@harshil-goel
harshil-goel marked this pull request as ready for review November 10, 2026 18:15
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from ed58b73 to bf0fc26 Compare November 10, 2026 19:30
@harshil-goel
harshil-goel changed the base branch from main to kaushik/source-lag-metrics November 10, 2026 19:38
@harshil-goel
harshil-goel added this pull request to stack #313 November 10, 2026 19:39
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from bf0fc26 to 9d85078 Compare November 10, 2026 20:22
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 9d85078 to 7451ef3 Compare November 10, 2026 21:31
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 7451ef3 to fa0e229 Compare November 11, 2026 07:26
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from fa0e229 to 7607fcc Compare November 11, 2026 07:48
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 7607fcc to 223d675 Compare November 11, 2026 08:58
@harshil-goel
harshil-goel removed this pull request from stack #313 November 11, 2026 09:23
@harshil-goel
harshil-goel added this pull request to stack #317 November 11, 2026 09:23
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 223d675 to 8b0c303 Compare November 11, 2026 09:32
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 8b0c303 to 838dca1 Compare November 11, 2026 09:45
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 838dca1 to 3252222 Compare November 11, 2026 11:38
Comment thread src/ops/bridge.rs Outdated
/// Upper bounds of the bridge request-latency buckets: 25us doubling to
/// 102.4ms, which spans a local socket round trip through a worker stalled on
/// slow storage. Slower requests land in `+Inf`
pub const REQUEST_LATENCY_BOUNDS_NANOS: [u64; REQUEST_LATENCY_BUCKETS] = {

@serprex serprex Nov 11, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have const array when this is basic function 25_000 << x

Makes me think we should support HistogramFn or there's something wrong with the Historgram concept

@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 3252222 to 0a7577d Compare November 17, 2026 10:08
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 0a7577d to d8918f1 Compare November 18, 2026 05:11
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch 2 times, most recently from d5f95c0 to 0b039a8 Compare November 18, 2026 08:44
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 0b039a8 to 3b58942 Compare November 18, 2026 11:39
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 3b58942 to 691e44d Compare November 18, 2026 12:18
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 691e44d to d255e99 Compare November 18, 2026 13:23
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from d255e99 to ae7a210 Compare November 18, 2026 15:57
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from ae7a210 to 7663990 Compare November 18, 2026 17:16
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 7663990 to 3eabf78 Compare November 18, 2026 18:04
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 3eabf78 to 95301ea Compare November 19, 2026 10:48
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from 95301ea to def74f5 Compare November 19, 2026 11:01
@harshil-goel
harshil-goel force-pushed the kaushik/bridge-latency-histograms branch from def74f5 to aa4a4cd Compare November 19, 2026 11:03
@harshil-goel
harshil-goel merged commit 2bbdb62 into main Nov 19, 2026
8 checks passed
@harshil-goel
harshil-goel deleted the kaushik/bridge-latency-histograms branch November 19, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants