prometheus / prometheus/client_js
Should Summary have a .zero function?
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 3.5k
- Forks
- 429
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Description
Histogram has a .zero function where all known label values can be set to 0.
Is it an oversight that Summary does not have the same function?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing Histogram's existing .zero behavior with the Summary implementation and identify how known label values are represented. Determine whether Summary should expose equivalent behavior, clarify the expected semantics, and add focused tests that define what completion looks like.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100