epsagon / epsagon-go

Automated tracing library for Go 1.x ⚡️
https://epsagon.com
MIT License
28 stars 11 forks source link

Adding error recovery to lambda wrapper #7

Closed enoodle closed 5 years ago

enoodle commented 5 years ago

I tried to split the operations in Invoke to before/after the invocation of the handler. Each part can recover if possible (so a bug in a trigger will not prevent the function event from being created). If something happens when starting/stopping the tracer then the recovery calls the handler if it hasn't been called yet and returns silently.