13.1.sentry实现错误日志监控
文档请参考:https://docs.sentry.io/platforms/python/guides/django/
Install
Install our Python SDK using pip
:
Configure
Configuration should happen as early as possible in your application's lifecycle.
Initialize the Python SDK with the Django integration in your settings.py
file. Once this is done, the SDK captures all unhandled exceptions and transactions.
settings.py
Additional configuration for DjangoIntegration
can be found under integration configuration.
Verify
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up:
Last updated
Was this helpful?