elastic / elastic/apm-agent-nodejs
chore: improve package resolution at `agent.start()`
Open
agent-nodejs
- Dominant language
- JavaScript
- Stars
- 594
- Forks
- 244
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
When the agent starts with `logLevel = trace` the agent tries to resolve the package info to display some extra data by doing a simple file lookup in the running scripts folder. It is possible that the script is not placed alongside the package file but it might be on a upper level.
We need to improve the lookup process to cover this situation. For more context see [this comment](https://github.com/elastic/apm-agent-nodejs/pull/3383/files#r1212187394)
Contributor guide
Assessment
This issue has not been assessed yet.