bugsnag / bugsnag-go

Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
https://docs.bugsnag.com/platforms/go
MIT License
204 stars 69 forks source link

When a third part doesn't have APIKey #189

Closed LuizFJP closed 2 years ago

LuizFJP commented 2 years ago

I'm getting APIKey by environment variable. Untill there ok, but when a colleague doesn't have this key. They receive that: 2022/06/01 13:52:18 bugsnag/defaultReportPublisher.publishReport: bugsnag/payload.deliver: invalid api key: '' 2022/06/01 13:52:18 bugsnag/defaultReportPublisher.publishReport: bugsnag/payload.deliver: invalid api key: ''

We don't want to receive that message, what is the best recomendation?

luke-belton commented 2 years ago

Hi @LuizFJP - the Bugsnag API key is designed as a write-only key that cannot be used for read access to any of your data. If you wish to disable reporting in certain environments, you could consider using the NotifyReleaseStages config option.