elastic / elastic/apm-agent-nodejs
Put upper version bound on which modules are instrumented
Open
agent-nodejs
enhancement
- Dominant language
- JavaScript
- Stars
- 594
- Forks
- 244
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
As agreed in #514, we should put an upper bound on the major version for which versions of a package is instrumented. Today this is done for some of the packages we instrument but not others.
It should also be possible for the user to exceed this bound using a new config option called `instrumentUnsupportedVersions` that takes a list of modules whos upper bound should be ignored (lower bound should always be adhered to).
Example:
```
ELASTIC_APM_INSTRUMENT_UNSUPPORTED_VERSIONS=mssql,redis
```
Contributor guide
Assessment
This issue has not been assessed yet.