honeybadger-io / honeybadger-php

PHP library for reporting errors to Honeybadger.io :elephant: :zap:
https://www.honeybadger.io/for/php/?utm_source=github&utm_medium=readme&utm_campaign=php&utm_content=website-url
MIT License
38 stars 21 forks source link

Add support for custom grouping / fingerprint #167

Closed subzero10 closed 1 year ago

subzero10 commented 1 year ago

The PHP package is missing support for Honeybadger's custom fault grouping feature. This can be achieved by passing a custom fingerprint to the Honeybadger API when reporting an error/notice.

See related issues in other packages:

shalvah commented 1 year ago

Looks like a custom fingerprint is already supported in $honeybadger->notify. Seems there's no documentation page for it, though. Made a PR: https://github.com/honeybadger-io/docs/pull/292

No beforeNotify() method in the PHP library, so no custom fingerprinting there. I'm not sure why there isn't such a hook. Perhaps because there's much less async stuff going in PHP, so the hook wouldn't add much value.

subzero10 commented 1 year ago

Thanks! I don't know why I missed it :)