You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
binsee
changed the title
Cannot read properties of null (reading 'config') when
call setGlobalLabel causes exception when apm is not activated
Jun 26, 2023
binsee
added a commit
to binsee/apm-agent-nodejs
that referenced
this issue
Jun 26, 2023
Describe the bug
When starting with
{ active: false}
, calling setGlobalLabel triggers an exception:TypeError: Cannot read properties of null (reading 'config')
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Regardless of whether it is active or not, no error should be reported
Environment (please complete the following information)
MacOS
16.19.0
3.47.0
How are you starting the agent? (please tick one of the boxes)
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
)elastic-apm-node/start
from within the source code-r elastic-apm-node/start
Additional context
Agent config options:
Click to expand
package.json
dependencies:Click to expand
Test code:
Click to expand
The text was updated successfully, but these errors were encountered: