In my Angular application I need to use 2 Error handler, the first one is my custom error handler and second one is the Elastic error handler. Can I use both?
Right now I see that the last one I register in app.module overwrite the previous one, and it is not possible to use multi: true
like the interceptor.
providers: [
{
provide: ErrorHandler,
useClass: CustomErrorHandler
},
{
provide: ErrorHandler,
useClass: ApmErrorHandler
},
]
Thanks very much