/home/lnzliplg/www/alt-python38-sentry-sdk.zip
PK �b�\�F�! �!
CHANGES.mdnu �[��� ## 0.7.10
* Add more event trimming.
* Log Sentry's response body in debug mode.
* Fix a few bad typehints causing issues in IDEs.
* Fix a bug in the Bottle integration that would report HTTP exceptions (e.g.
redirects) as errors.
* Fix a bug that would prevent use of `in_app_exclude` without
setting `in_app_include`.
* Fix a bug where request bodies of Django Rest Framework apps were not captured.
* Suppress errors during SQL breadcrumb capturing in Django
integration. Also change order in which formatting strategies
are tried.
## 0.7.9
* New integration for the Bottle web framework. Thanks to Stepan Henek!
* Self-protect against broken mapping implementations and other broken reprs
instead of dropping all local vars from a stacktrace. Thanks to Marco
Neumann!
## 0.7.8
* Add support for Sanic versions 18 and 19.
* Fix a bug that causes an SDK crash when using composed SQL from psycopg2.
## 0.7.7
* Fix a bug that would not capture request bodies if they were empty JSON
arrays, objects or strings.
* New GNU backtrace integration parses stacktraces from exception messages and
appends them to existing stacktrace.
* Capture Tornado formdata.
* Support Python 3.6 in Sanic and AIOHTTP integration.
* Clear breadcrumbs before starting a new request.
* Fix a bug in the Celery integration that would drop pending events during
worker shutdown (particularly an issue when running with `max_tasks_per_child
= 1`)
* Fix a bug with `repr`ing locals whose `__repr__` simultaneously changes the
WSGI environment or other data that we're also trying to serialize at the
same time.
## 0.7.6
* Fix a bug where artificial frames for Django templates would not be marked as
in-app and would always appear as the innermost frame. Implement a heuristic
to show template frame closer to `render` or `parse` invocation.
## 0.7.5
* Fix bug into Tornado integration that would send broken cookies to the server.
* Fix a bug in the logging integration that would ignore the client
option `with_locals`.
## 0.7.4
* Read release and environment from process environment like the Raven SDK
does. The keys are called `SENTRY_RELEASE` and `SENTRY_ENVIRONMENT`.
* Fix a bug in the `serverless` integration where it would not push a new scope
for each function call (leaking tags and other things across calls).
* Experimental support for type hints.
## 0.7.3
* Fix crash in AIOHTTP integration when integration was set up but disabled.
* Flask integration now adds usernames, email addresses based on the protocol
Flask-User defines on top of Flask-Login.
* New threading integration catches exceptions from crashing threads.
* New method `flush` on hubs and clients. New global `flush` function.
* Add decorator for serverless functions to fix common problems in those
environments.
* Fix a bug in the logging integration where using explicit handlers required
enabling the integration.
## 0.7.2
* Fix `celery.exceptions.Retry` spamming in Celery integration.
## 0.7.1
* Fix `UnboundLocalError` crash in Celery integration.
## 0.7.0
* Properly display chained exceptions (PEP-3134).
* Rewrite celery integration to monkeypatch instead of using signals due to
bugs in Celery 3's signal handling. The Celery scope is also now available in
prerun and postrun signals.
* Fix Tornado integration to work with Tornado 6.
* Do not evaluate Django `QuerySet` when trying to capture local variables.
Also an internal hook was added to overwrite `repr` for local vars.
## 0.6.9
* Second attempt at fixing the bug that was supposed to be fixed in 0.6.8.
> No longer access arbitrary sequences in local vars due to possible side effects.
## 0.6.8
* No longer access arbitrary sequences in local vars due to possible side effects.
## 0.6.7
* Sourcecode Django templates is now displayed in stackframes like Jinja templates in Flask already were.
* Updates to AWS Lambda integration for changes Amazon did to their Python 3.7 runtime.
* Fix a bug in the AIOHTTP integration that would report 300s and other HTTP status codes as errors.
* Fix a bug where a crashing `before_send` would crash the SDK and app.
* Fix a bug where cyclic references in e.g. local variables or `extra` data would crash the SDK.
## 0.6.6
* Un-break API of internal `Auth` object that we use in Sentry itself.
## 0.6.5
* Capture WSGI request data eagerly to save memory and avoid issues with uWSGI.
* Ability to use subpaths in DSN.
* Ignore `django.request` logger.
## 0.6.4
* Fix bug that would lead to an `AssertionError: stack must have at least one layer`, at least in testsuites for Flask apps.
## 0.6.3
* New integration for Tornado
* Fix request data in Django, Flask and other WSGI frameworks leaking between events.
* Fix infinite recursion when sending more events in `before_send`.
## 0.6.2
* Fix crash in AWS Lambda integration when using Zappa. This only silences the error, the underlying bug is still in Zappa.
## 0.6.1
* New integration for aiohttp-server.
* Fix crash when reading hostname in broken WSGI environments.
## 0.6.0
* Fix bug where a 429 without Retry-After would not be honored.
* Fix bug where proxy setting would not fall back to `http_proxy` for HTTPs traffic.
* A WSGI middleware is now available for catching errors and adding context about the current request to them.
* Using `logging.debug("test", exc_info=True)` will now attach the current stacktrace if no `sys.exc_info` is available.
* The Python 3.7 runtime for AWS Lambda is now supported.
* Fix a bug that would drop an event or parts of it when it contained bytes that were not UTF-8 encoded.
* Logging an exception will no longer add the exception as breadcrumb to the exception's own event.
## 0.5.5
* New client option `ca_certs`.
* Fix crash with Django and psycopg2.
## 0.5.4
* Fix deprecation warning in relation to the `collections` stdlib module.
* Fix bug that would crash Django and Flask when streaming responses are failing halfway through.
## 0.5.3
* Fix bug where using `push_scope` with a callback would not pop the scope.
* Fix crash when initializing the SDK in `push_scope`.
* Fix bug where IP addresses were sent when `send_default_pii=False`.
## 0.5.2
* Fix bug where events sent through the RQ integration were sometimes lost.
* Remove a deprecation warning about usage of `logger.warn`.
* Fix bug where large frame local variables would lead to the event being rejected by Sentry.
## 0.5.1
* Integration for Redis Queue (RQ)
## 0.5.0
* Fix a bug that would omit several debug logs during SDK initialization.
* Fix issue that sent a event key `""` Sentry wouldn't understand.
* **Breaking change:** The `level` and `event_level` options in the logging integration now work separately from each other.
* Fix a bug in the Sanic integration that would report the exception behind any HTTP error code.
* Fix a bug that would spam breadcrumbs in the Celery integration. Ignore logger `celery.worker.job`.
* Additional attributes on log records are now put into `extra`.
* Integration for Pyramid.
* `sys.argv` is put into extra automatically.
## 0.4.3
* Fix a bug that would leak WSGI responses.
## 0.4.2
* Fix a bug in the Sanic integration that would leak data between requests.
* Fix a bug that would hide all debug logging happening inside of the built-in transport.
* Fix a bug that would report errors for typos in Django's shell.
## 0.4.1
* Fix bug that would only show filenames in stacktraces but not the parent
directories.
## 0.4.0
* Changed how integrations are initialized. Integrations are now
configured and enabled per-client.
## 0.3.11
* Fix issue with certain deployment tools and the AWS Lambda integration.
## 0.3.10
* Set transactions for Django like in Raven. Which transaction behavior is used
can be configured.
* Fix a bug which would omit frame local variables from stacktraces in Celery.
* New option: `attach_stacktrace`
## 0.3.9
* Bugfixes for AWS Lambda integration: Using Zappa did not catch any exceptions.
## 0.3.8
* Nicer log level for internal errors.
## 0.3.7
* Remove `repos` configuration option. There was never a way to make use of
this feature.
* Fix a bug in `last_event_id`.
* Add Django SQL queries to breadcrumbs.
* Django integration won't set user attributes if they were already set.
* Report correct SDK version to Sentry.
## 0.3.6
* Integration for Sanic
## 0.3.5
* Integration for AWS Lambda
* Fix mojibake when encoding local variable values
## 0.3.4
* Performance improvement when storing breadcrumbs
## 0.3.3
* Fix crash when breadcrumbs had to be trunchated
## 0.3.2
* Fixed an issue where some paths where not properly sent as absolute paths
PK �b�\�a(t2 2 LICENSEnu �[��� Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PK �b�\�C C README.mdnu �[��� <p align="center">
<a href="https://sentry.io" target="_blank" align="center">
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
</a>
</p>
# sentry-python - Sentry SDK for Python
[](https://travis-ci.com/getsentry/sentry-python)
[](https://pypi.python.org/pypi/sentry-sdk)
This is the next line of the Python SDK for [Sentry](http://sentry.io/), intended to replace the `raven` package on PyPI.
```python
from sentry_sdk import init, capture_message
init("mydsn@sentry.io/123")
capture_message("Hello World") # Will create an event.
raise ValueError() # Will also create an event.
```
To learn more about how to use the SDK:
- [Getting started with the new SDK](https://docs.sentry.io/quickstart/?platform=python)
- [Configuration options](https://docs.sentry.io/error-reporting/configuration/?platform=python)
- [Setting context (tags, user, extra information)](https://docs.sentry.io/enriching-error-data/context/?platform=python)
- [Integrations](https://docs.sentry.io/platforms/python/)
Are you coming from raven-python?
- [Cheatsheet: Migrating to the new SDK from Raven](https://forum.sentry.io/t/switching-to-sentry-python/4733)
To learn about internals:
- [API Reference (using pdoc)](https://getsentry.github.io/sentry-python/)
- [API Reference (using sphinx)](https://www.pydoc.io/search/?package=sentry-sdk)
# License
Licensed under the BSD license, see `LICENSE`
PK �b�\yi ^� � CONTRIBUTING.mdnu �[��� # How to contribute to the Sentry Python SDK
`sentry-sdk` is an ordinary Python package. You can install it with `pip
install -e .` into some virtualenv, edit the sourcecode and test out your
changes manually.
## Running tests and linters
Make sure you have `virtualenv` installed, and the Python versions you care
about. You should have Python 2.7 and the latest Python 3 installed.
You don't need to `workon` or `activate` anything, the `Makefile` will create
one for you. Run `make` or `make help` to list commands.
## Releasing a new version
We use [craft](https://github.com/getsentry/craft#python-package-index-pypi) to
release new versions. You need credentials for the `getsentry` PyPI user, and
must have `twine` installed globally.
The usual release process goes like this:
1. Go through git log and write new entry into `CHANGELOG.md`, commit to master
2. `craft p a.b.c`
3. `craft pp a.b.c`
PK �b�\�F�! �!
CHANGES.mdnu �[��� PK �b�\�a(t2 2 4"