-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Context middlewareEventConsumer currently logs validation / gRPC errors internally but does not allow callers to react. There are TODOs in Scrawn.js/packages/scrawn/src/core/scrawn.ts indicating a callback is desired.
Goal Allow SDK users to provide an optional onError callback that runs when the middleware fails to track an event (validation or gRPC failure).
Acceptance Criteria
middlewareEventConsumerconfig accepts optional onError callback.onErrorreceives{ error, req, payload? }(or equivalent) for:- validation failure
- gRPC failure
- unexpected runtime error
- Existing behavior remains backward compatible.
Notes
- Keep callback optional
- Do not throw from middleware unless user callback throws.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers