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
Have tried to provide all the detail I can here, but I am not overly familiar with elastic-apm-node, let me know if I can help out with any other information (:
Thanks for reporting @jakedaleweb -- your level of detail was perfect. We were able to reproduce the behavior you described. We've got a PR going to fix this error. If you have a moment and could test your specific crashing use case with this branch that'd be great -- but no worries if not.
Describe the bug
When a transaction is not set and and
sqs.sendMessage
is called an error is thrown:Cannot read property 'setDestinationContext' of null
This was introduced in the SQS instrumentation added in version 3.14.0.
The problem is that
span
can be null here but there is no check for that case - https://github.com/elastic/apm-agent-nodejs/blob/master/lib/instrumentation/modules/aws-sdk/sqs.js#L154-L156Expected behavior
No error, should be handled gracefully.
Environment (please complete the following information)
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
The text was updated successfully, but these errors were encountered: