dbader / dbader/node-datadog-metrics

Cap the number of samples in node-datadog-metrics

Open
#19 2 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
147
Forks
60
PR merge metrics
No merged PRs in 30d

Description

https://github.com/dbader/node-datadog-metrics/blob/10d3b29d1fa527807e1301857caac400c54127b6/lib/metrics.js#L133-L136

If ddog is down this will hog a lot of memory.

Contributor guide

Open the contributing guide

Research direction

Start by reading lib/metrics.js at lines 133-136, where samples are accumulated before reporting. Determine how the buffer behaves when Datadog is unavailable, then define and enforce a maximum sample count; done means the buffer cannot grow without limit while preserving the existing reporting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
observability-sre
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.