moleculer
moleculer copied to clipboard
How to intercept transporter errors ?
Prerequisites
Please answer the following questions for yourself before submitting an issue.
- [ ] I am running the latest version (0.14-beta)
- [ ] I checked the documentation and found no answer
Current Behavior
Anybody know how to intercept Transporter error inside source ? I am using Molecular Web [API] and no one onError interceptor doesn't catch transporter logs. I need to report this events into Google Stackdriver
Here is my transporter config (i just want to intercept any transporter events from my services)
const broker = new ServiceBroker({
transporter: {
type: 'NATS',
options: {
url: process.env.TRANSPORTER_URL,
user: process.env.TRANSPORTER_USER,
pass: process.env.TRANSPORTER_PASS
}
});
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- Moleculer version: 0.14.0-beta5
- NodeJS version: 10.16.3
- Operating System: Mac OS
Currently it is not available to catch transporter errors.
+1
Released in v0.14.19 by PR #1048