All available options for configuring your integration with Bugsnag.
Your Bugsnag API key (required)
If you want to track which versions of your application each exception
happens in, you can set
app_version. It is set to
None by default.
By default, requests are sent asynchronously to Bugsnag. If you would
like to block until the request is done, you can set
By default, we will automatically notify Bugsnag of any fatal
exceptions in your application. If you want to stop this from
happening, you can set
delivery property is a generic way to send a serialized payload to
Bugsnag. By default, if requests
is installed, the
RequestsDelivery class is used to deliver error reports,
UrllibDelivery is used.
from bugsnag.delivery import UrllibDelivery bugsnag.configure(delivery=UrllibDelivery())
To use a custom
delivery, implement the
from bugsnag.delivery import Delivery class SomeSpecialDelivery(Delivery): def deliver(self, config, payload): send_to_my_queue(config.endpoint, config.proxy_host, payload) bugsnag.configure(delivery=SomeSpecialDelivery())
Sets the URL used to send error reports to Bugsnag. By default,
Sets which exception classwes should never be sent to Bugsnag. This feature is useful when you have a large number of 404 errors and do not want them all sent to Bugsnag.
ignore_classes is set to
By default, we will notify Bugsnag of exceptions that happen in any
release_stage. If you would like to change which release stages notify Bugsnag
of exceptions you can set
Sets the strings to filter out from the
params hashes before sending them to
Bugsnag. Use this if you want to ensure you don’t send sensitive data such as
passwords, and credit card numbers to our servers. Any keys which contain these
strings will be filtered.
We mark stacktrace lines as
inProject if they come from files inside your
If you would like to distinguish between errors that happen in different stages
of the application release process (development, production, etc) you can set
release_stage that is reported to Bugsnag.
bugsnag.configure(release_stage = "development")
In Django apps this value is automatically set to
development if the server
running is the Django development server. Otherwise the default is
By default, we send a few lines of source code to Bugsnag along with
the exception report. If you want to stop this from happening, you can
A list of modules to exclude from tracebacks. This is useful if you are
bugsnag.notify() in with your own library. Normally every traceback
would end with that line in your logging library, which would cause bugsnag to
group all errors as occurences of a single error, no matter where they came from
in your program. You can use this option to exclude your custom logging module
from the tracebacks, causing things to be grouped properly. Note this list must
contain actual modules of type module, not strings that are module identifiers.
import myapp.custom_logging bugsnag.configure(traceback_exclude_modules=[myapp.custom_logging])