How to output errors to console? APM is only sending them to the server

Hello,

I'd like to print the errors to console (stdout, stderr) instead of only sending them to the APM server. Acctually what is happening now is that even compilation errors (Typescript) are being sent to the server, and in the console I only get:

[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /home/ffknob/Entwicklung/workspace/kadata/elastic-apm-demo/app/middleware/src/**/*
[nodemon] starting `ts-node src/app.ts`
Sending error to Elastic APM { id: '46ca64fa4e37cac7e70100cb3229f10d' }
[nodemon] app crashed - waiting for file changes before starting...

I have this in my Agent's start options:

logUncaughtExceptions: true

An this:

apm.addErrorFilter((payload: Payload) => console.log(payload));

But still no output in the console other than Sending error to Elastic APM .

Thank you

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.