GNU Backtrace

Learn about the GNU backtrace integration and how to add it to your integrations list.

The GNU backtrace integration parses native stack trace produced by backtrace_symbols from error messages and concatenates them with the Python traceback.

It is currently tested to work with server exceptions raised by clickhouse-driver.

Install sentry-sdk from PyPI.

Copied
pip install --upgrade 'sentry-sdk'

Add GnuBacktraceIntegration() to your integrations list:

Copied
import sentry_sdk
from sentry_sdk.integrations.gnu_backtrace import GnuBacktraceIntegration

sentry_sdk.init(
    dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
    integrations=[
        GnuBacktraceIntegration(),
    ],
)

The GNU backtrace integration is tested with server exceptions raised by clickhouse-driver.

Other libraries must emit exceptions that have backtrace-compatible values for the GNU backtrace integration to parse the exceptions.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").