Skip to content

Commit b445b6d

Browse files
authored
Merge pull request #111 from MindscapeHQ/ro/cs-100/solve-oversized-payload-issue
ro/cs-100/solve-oversized-payload-issue
2 parents 01a3d5f + 2aa70d0 commit b445b6d

30 files changed

+186
-1584
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@ language: python
33
cache: pip
44

55
python:
6-
- "2.7"
76
- "3.6"
87
- "3.7"
98
- "3.8"
109
- "3.9"
1110
- "3.10"
1211
- "3.11"
13-
- "pypy"
12+
- "3.12"
1413
- "pypy3"
1514

1615
install:
1716
- python -m pip install coverage .[dev]
1817

1918
script:
20-
- if [[ $TRAVIS_PYTHON_VERSION == 2* || $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then coverage run --source=python2 -m unittest discover python2/tests; fi
2119
- if [[ $TRAVIS_PYTHON_VERSION == 3* || $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then coverage run --source=python3 -m unittest discover python3/tests; fi
2220

2321
after_success:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 5.0.0 (13/02/24):
2+
Breaking changes:
3+
- Support for Python 2.7 has been dropped
4+
5+
Bug Fixes:
6+
- Removes largest local/global variables in crash payload to ensure payload size limit is not breached (optional)
7+
- We now provide `enforce_payload_size_limit` and `log_payload_size_limit_breaches` as configuration options, both enabled by default
8+
- These control whether the provider will attempt to remove variables if there is an oversized payload and log which variables were removed
9+
110
## 4.4.0 (11/08/2023):
211
Features:
312
- Added `RaygunHandler.from_sender()` factory to construct a `RaygunHandler` instance using an existing `RaygunSender`. This allows for additional configuration of the sender.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include README.rst
22
include setup.py
3-
recursive-include python2 *.py
43
recursive-include python3 *.py

README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ raygun4py
1010

1111
Official Raygun provider for **Python 2.7**, **Python 3.1+** and **PyPy**
1212

13+
**Python 2.7** is supported in versions <= 4.4.0
14+
1315
Please also refer to our `documentation site <https://raygun.com/documentation/language-guides/python/crash-reporting/installation/>`_, as this is maintained with higher priority.
1416

1517

@@ -132,11 +134,16 @@ The above configuration is the minimal required setup. The full set of options s
132134
'ignored_exceptions': [],
133135
'transmit_global_variables': True,
134136
'transmit_local_variables': True,
137+
'enforce_payload_size_limit': True,
138+
'log_payload_size_limit_breaches': True,
135139
'transmit_environment_variables:': True,
136140
'userversion': "Not defined",
137141
'user': None
138142
}
139143
144+
'enforce_payload_size_limit' when enabled (default behavior) will iteratively remove the largest global or local variable from the error message until the payload is below 128kb as payloads over 128kb will not be accepted by Raygun
145+
'log_payload_size_limit_breaches' when enabled (default behavior) will log breaches and specify which variables are being removed
146+
140147
Flask
141148
+++++
142149

python2/raygun4py/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

python2/raygun4py/cli.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

python2/raygun4py/http_utilities.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

python2/raygun4py/middleware/__init__.py

Whitespace-only changes.

python2/raygun4py/middleware/django.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

python2/raygun4py/middleware/flask.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)