elastic / elastic/apm-agent-nodejs

Replace metrics gathering infrastructure with something more flexible

Open
#1,272 3 comments 3 reactions 0 assignees View on GitHub
agent-nodejs discuss technical debt
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

The current metrics gathering components built on [measured](https://npmjs.org/package/measured-core) lacks some flexibility in a few ways which make it a bit painful for us:

- lack of proper support for async gathering makes some things awkward and hacky
- bulk gathering of multiple metrics from one async source is _extra_ awkward
- little control of what is tracked in the registry globally to apply limits, and therefore little control of overhead
- reporting has too much indirection around it, making it difficult to reason about and control reliably

I think we should start by discussing our needs for metrics gathering and see if we can come up with a high-level description of how the data model and control flow need to fit together, for our use-case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.