Skip to content

Correct histogram bucket values in metrics.mdx#1282

Merged
gcanti merged 1 commit intoEffect-TS:mainfrom
jsfeldman:patch-1
Jan 22, 2026
Merged

Correct histogram bucket values in metrics.mdx#1282
gcanti merged 1 commit intoEffect-TS:mainfrom
jsfeldman:patch-1

Conversation

@jsfeldman
Copy link
Contributor

@jsfeldman jsfeldman commented Jan 22, 2026

I'm not too familiar with effect but I think the comments explaining the histogram buckets are off. To get the count in a bucket between a range it looks like you would need to subtract the count in one bucket by the count in the previous bucket. So I believe this comment for example: // 20 values in the 30-40 range is over counting the amount of values in that range by listing the 2nd value in the [ 30, 20 ] array.

Let me know if I'm misunderstanding something.

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Small update to the documentation relating to the count in each histogram bucket.

Related

  • Related Issue #
  • Closes #

I'm not too familiar with effect but I think the comments explaining the histogram buckets are off. To get the count in a bucket between a range it looks like you would need to subtract the count in one bucket by the count in the previous bucket. So I believe this comment for example: // 20 values in the 30-40 range
is over counting the amount of values in that range by listing the 2nd value in the [ 30, 20 ] array.

Let me know if I'm misunderstanding something.
@vercel
Copy link

vercel bot commented Jan 22, 2026

@jsfeldman is attempting to deploy a commit to the Effect Team on Vercel.

A member of the Team first needs to authorize it.

@gcanti gcanti merged commit 1fc2d10 into Effect-TS:main Jan 22, 2026
0 of 3 checks passed
@gcanti
Copy link
Contributor

gcanti commented Jan 22, 2026

Thanks @jsfeldman

@jsfeldman jsfeldman deleted the patch-1 branch January 22, 2026 18:50
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.

2 participants