Skip to content

Bugsnag logging #19308

Closed
Closed
@krisgerhard

Description

@krisgerhard

Description

A Quarkus Extension to send (error) logs to a Bugsnag Error Monitoring.
Bugsnag homepage

There is an official extension for sentry (https://quarkus.io/guides/logging-sentry) but it is not the only popular error monitoring tool out there. I (and hopefully many others) would benefit from supporting Bugsnag as well.

In fact I have already implemented and used this extension in production for about two weeks now, and figured I might as well help make it available for others. It's separated in a repository -> https://github.com/krisgerhard/logging-bugsnag.
Couple of remarks about the implementation.

  • I acknowledge it is not usable for quarkiverse as is. It is meant to show the simplicity of the extension.
  • Most of the work is done by bugsnag-java library BUT there is some additional code to support tracking RESTEasy HTTP requests. For this I've also created a PR in bugsnag-java repository but I would not count on them mergeing it any time soon so this code could as well be part of this extension until the time comes.

Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).

Configuration suggestion

https://docs.bugsnag.com/platforms/java/other/configuration-options/
quarkus.log.bugsnag.enable=true
quarkus.log.bugsnag.api-key=YOUR_API_KEY
quarkus.log.bugsnag.minimum-event-level=WARN
quarkus.log.bugsnag.filters=password, credit_card_number
quarkus.log.bugsnag.ignored-classes=java.io.IOException, com.example.Custom
quarkus.log.bugsnag.notify-release-stage=production, development
quarkus.log.bugsnag.project-packages=com.company.package1, com.company.package2
quarkus.log.bugsnag.release-stage=development
quarkus.log.bugsnag.send-threads=false
quarkus.log.bugsnag.timeout=5000

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions