-
Notifications
You must be signed in to change notification settings - Fork 56
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
add Honeybadger.event interface #564
Conversation
send application events to the event endpoint add a timestamp issue honeybadger-io#554 honeybadger-io#554
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.
This is looking good, thanks! Could you address the ts
comment and run mix format
?
lib/honeybadger.ex
Outdated
|
||
@spec event(map()) :: :ok | ||
def event(event_data) do | ||
Client.send_event(event_data) |
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.
Could you supply a ts
of DateTime.utc_now()
here if one isn't present in the map?
fix event/2 to add event_type and then call to event/1 then add the timestamp in event/1 so that it's always added also mix format issue honeybadger-io#554
@stympy thanks for the helpful prompt review. I think those 2 issues should be addressed now. |
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.
Looking good. I have some suggested changes for you. :)
Released in 0.22.0. Thanks! |
I've upgraded our app back to the main version. Thanks for handling it so quickly! |
send application events to the event endpoint
add a timestamp
issue #554
#554