-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IWF-105: Add event logger #480
Conversation
6f2395e
to
8bec18e
Compare
7891697
to
2afa674
Compare
service/common/logevent/logevent.go
Outdated
import "github.com/indeedeng/iwf/gen/iwfidl" | ||
|
||
// The implementation must be lightweight, reliable and fast (less than 1s) | ||
type LogEventFunc func(event iwfidl.IwfEvent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for changing my mind on naming -- since this is event, maybe calling it "HandleEventFunc"?
because it may not be logging -- we may be sending to Kafka and consuming for DB etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Lgtm otherwise |
78e3985
to
72d1587
Compare
@@ -0,0 +1,16 @@ | |||
package handleevent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe package event
?
An the other places it's event.Handler(...)
Description
Checklist
Related Issue
Closes #issue_number