Just noticed this while trying to run my tests - even if I hardcode 'active' to false the agent still sends. It doesn't look like the setting is merged in to the agent.
I was able to overcome this by putting 'active' underneath the elastic-apm.app config block (as well as the top level)
Old
return [
// Sets whether the apm reporting should be active or not
'active' => false,
New
// Sets whether the apm reporting should be active or not
'active' => false,
app' => [
// Sets whether the apm reporting should be active or not
'active' => false,
I would think the fix could be to just merge in the setting.
Just noticed this while trying to run my tests - even if I hardcode 'active' to false the agent still sends. It doesn't look like the setting is merged in to the agent.
I was able to overcome this by putting 'active' underneath the elastic-apm.app config block (as well as the top level)
Old
New
I would think the fix could be to just merge in the setting.