elastic / elastic/apm-agent-nodejs

chore: improve package resolution at `agent.start()`

Open
#3,397 1 comment 0 reactions 0 assignees View on GitHub
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

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.