I am using the package elastic-apm-node
for sending the APM data to Elastic via Nodejs app. I need to do something like apm.captureError(error)
to send the error to Elastic.
Is there some where wherein i can send simple console.log()
to Elastic ?
I basically need functionality wherein i can track every function getting called in my App.
Function A (){
console.log("Function A called , send to Elastic");
doSomething()
}
Function doSomething(){
console.log("Function doSomething called, send to Elastic");
}
I got some example using Elastic FileBeat , but i think this should be achievable using APM as the connection is already made between the app and Elastic.