semantic_logger icon indicating copy to clipboard operation
semantic_logger copied to clipboard

Add honeybadger_events appender

Open trvsdnn opened this issue 1 year ago • 5 comments

Changelog

Entry added:

  • Add appender for Honeybadger events/insights API

Description of changes

Adds an additional Honeybadger appender honeybadger_events for their events/insights API.

The appender uses the honeybadger gem and the Honeybadger.event method, which is intelligent about batching log lines and sending a single request.

trvsdnn avatar Jun 11 '24 21:06 trvsdnn

I wonder if it would make sense to modify the existing appender instead of creating a new one. The non-exception branch of the log method could use Honeybadger.event to send the payload.

stympy avatar Jun 12 '24 18:06 stympy

I considered that – it's a bit odd to use semantic_logger for exceptions when the honeybadger gem does it already. Unless I'm missing some clear benefit.

The problem IMO is that it's a change in behavior for anyone using it and would/should require a major release I would think.

This approach felt similar to the NewRelic vs NewRelicLogs appenders.

trvsdnn avatar Jun 12 '24 18:06 trvsdnn

I considered that – it's a bit odd to use semantic_logger for exceptions when the honeybadger gem does it already. Unless I'm missing some clear benefit.

Agreed :)

The problem IMO is that it's a change in behavior for anyone using it and would/should require a major release I would think.

This approach felt similar to the NewRelic vs NewRelicLogs appenders.

Yeah, that makes sense.

stympy avatar Jun 12 '24 19:06 stympy

Understandably we are calling it Honeybadger Events, since it uses the Event API, but they refer to overall solution as Honeybadger Insights: https://docs.honeybadger.io/guides/insights/ Can we rename the appender to HoneybadgerInsights ?

For anyone that first comes across the appender, Honeybadger Insights would be simpler to understand.

reidmorrison avatar Jun 29 '24 15:06 reidmorrison

Understandably we are calling it Honeybadger Events, since it uses the Event API, but they refer to overall solution as Honeybadger Insights: https://docs.honeybadger.io/guides/insights/ Can we rename the appender to HoneybadgerInsights ?

For anyone that first comes across the appender, Honeybadger Insights would be simpler to understand.

👍

stympy avatar Jun 29 '24 18:06 stympy