Skip to content
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

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Conversation

mdg
Copy link
Contributor

@mdg mdg commented Aug 28, 2024

send application events to the event endpoint
add a timestamp

issue #554
#554

send application events to the event endpoint
add a timestamp

issue honeybadger-io#554
honeybadger-io#554
Copy link
Member

@stympy stympy left a 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?


@spec event(map()) :: :ok
def event(event_data) do
Client.send_event(event_data)
Copy link
Member

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
@mdg
Copy link
Contributor Author

mdg commented Aug 28, 2024

@stympy thanks for the helpful prompt review. I think those 2 issues should be addressed now.

@mdg mdg requested a review from stympy August 28, 2024 22:36
Copy link
Member

@stympy stympy left a 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. :)

@stympy stympy merged commit d7bf1f9 into honeybadger-io:master Aug 29, 2024
2 checks passed
@mdg mdg deleted the mdg-554 branch August 29, 2024 14:23
@stympy
Copy link
Member

stympy commented Aug 29, 2024

Released in 0.22.0. Thanks!

@mdg
Copy link
Contributor Author

mdg commented Aug 30, 2024

I've upgraded our app back to the main version. Thanks for handling it so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants