kuzzle icon indicating copy to clipboard operation
kuzzle copied to clipboard

Add a global error event for pipe errors

Open scottinet opened this issue 4 years ago • 0 comments

Feature Description

Similar to the existing hook:onError event, which allows to add handlers on hook failures, we need a pipe:onError event, allowing users to plug handlers listening to pipe failures.

Example Use Case

  • Easily catch faulty pipes
  • Add dedicated logs on custom code executions

Possible Solution (optional)

That event should be triggered by the pipe wrapper, which is added to any and all pipes added by the plugins manager.

That event must be listened only by hooks: there is no sense allowing pipes to listen to that event.

scottinet avatar Mar 04 '21 10:03 scottinet