|
| 1 | +# All client configuration options |
| 2 | + |
| 3 | +- ``with_locals`` (default ``True``): Capture frame locals with each error. |
| 4 | +- ``max_breadcrumbs`` (default ``100``): Attach the last ``n`` recorded |
| 5 | + breadcrumbs to an event/error. |
| 6 | +- ``release`` (default ``None``): The release name for all events, e.g. |
| 7 | + ``"1.0.3"``. This will map up into a release into Sentry. |
| 8 | +- ``environment`` (default ``None``): The environment your application is |
| 9 | + running in, e.g. ``"staging"`` or ``"production"``. |
| 10 | +- ``server_name`` (default to the system's hostname): The actual hostname of your |
| 11 | + system. |
| 12 | +- ``drain_timeout`` (default ``2.0``): When calling ``Client.close()`` or when |
| 13 | + exiting the contextmanager provided by ``sentry_sdk.init``, wait this many |
| 14 | + seconds for the last events to be sent. |
| 15 | +- ``integrations`` (default: ``[]``): Integrations to be enabled in addition to |
| 16 | + the default ``logging`` one. See the other pages for exact documentation for |
| 17 | + each integration. |
| 18 | +- ``default_integrations`` (default: ``True``): Whether to enable the default |
| 19 | + integrations (logging being the only one). Note that setting this to |
| 20 | + ``False`` is not the same as passing an empty sequence to ``integrations``, |
| 21 | + which would not disable the logging integration. |
| 22 | +- ``repos`` (default: ``{}``): [Repository |
| 23 | + references](https://docs.sentry.io/clientdev/interfaces/repos/). Example: |
| 24 | + |
| 25 | + 'raven': { |
| 26 | + # the name of the repository as registered in Sentry |
| 27 | + 'name': 'getsentry/raven-python', |
| 28 | + # the prefix where the local source code is found in the repo |
| 29 | + 'prefix': 'src' |
| 30 | + } |
| 31 | +- ``dist`` (default: ``None``): An optional distribution identifier (FIXME) |
| 32 | +- ``transport`` (default: ``None``): You may pass your own instance of |
| 33 | + ``sentry_sdk.transport.Transport`` if you have special requirements w.r.t. |
| 34 | + how your HTTP data is sent. This interface is not documented yet. |
| 35 | +- ``sample_rate`` (default: ``1.0``): Set this to a float value between ``0.0`` |
| 36 | + and ``1.0`` to send only that percentage of events (using random sampling). |
| 37 | + The default value ``1.0`` will send all events. ``0.0`` effectively disables |
| 38 | + the client. |
| 39 | +- ``send_default_pii`` (default: ``False``): By default Sentry-Python removes |
| 40 | + personally-identifiable information it knows about from events before sending |
| 41 | + them to Sentry. This includes cookie data, authentication headers and |
| 42 | + usernames. |
| 43 | +- ``http_proxy`` and ``https_proxy`` (default: from environment): Set these two |
| 44 | + variables if you need Sentry-Python to use a proxy to talk to Sentry. The |
| 45 | + default value uses [``urllib.getproxies()`` from the |
| 46 | + stdlib](https://docs.python.org/3.7/library/urllib.request.html#urllib.request.getproxies). |
| 47 | +- ``ignore_errors`` (default: ``[]``): A list of exception classes to ignore. |
| 48 | + The provided list must contain actual classes, "string identifiers" are not |
| 49 | + supported. Subclass hierarchies are respected, for example, setting |
| 50 | + ``ignore_errors=[BaseException]`` will ignore all exceptions. |
0 commit comments