honeybadger-python icon indicating copy to clipboard operation
honeybadger-python copied to clipboard

Allow non error events reporting

Open Kelvin4664 opened this issue 1 year ago • 1 comments

We'd like to send some non error events to the Honeybadger events api (https://docs.honeybadger.io/api/reporting-events/), There's no out of the box way to do this in python in a non blocking way (like honeybadger.notify())

Can we have a new method, say honeybadger.send_events() for this purpose?

Kelvin4664 avatar May 13 '24 14:05 Kelvin4664

We definitely would like to add async sending of events to the events API. The method should be honeybadger.event() and it ideally should have a signature like the JS and Ruby libraries that accepts either a dictionary or a string and a dictionary as its arguments (see the JS docs for info on that). The method should add a ts field with the current timestamp to the JSON payload if the caller didn't include a ts in the dictionary.

stympy avatar May 13 '24 16:05 stympy