forked from getsentry/raven-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
675 lines (483 loc) · 19.2 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
Version 6.0.0
-------------
* Strip whitespace from DSNs automatically.
* Add `last_event_id` accessor to `Client`.
* Do not require `sys.argv` to be available any more.
* Tags defined on a logging handler will now be merged with individual log record's tags.
* Added explicit support for multidicts in the django client.
* Refactored transports to support multiple URLs. This might affect
you if you have custom subclasses of those. The main change is that
the URL parameter moved from the constructor into the `send` method.
Version 5.32.0
--------------
* Made raven python breadcrumb patches work when librato monkey
patches logging.
Version 5.31.0
--------------
* Improved fix for the Django middleware regression.
Version 5.30.0
--------------
* Keep the original type for the django middleware settings if we
change them.
Version 5.29.0
--------------
* Added `register_logging_handler`.
* Removed bad mixin from django's WSGI middleware
* Removed "support for extracing data from rest_framework" because
this broke code.
Version 5.28.0
--------------
* Corrected an issue that caused `close()` on WSGI iterables to not be
correctly called.
* Fixes the new Django 1.10 `MIDDLEWARE_CLASSES` warning.
Version 5.27.1
--------------
* Bugfix for transaction based culprits.
Version 5.27.0
--------------
* Added support for extracting data from rest_framework in Django integration
* Updated CA bundle.
* Added transaction-based culprits for Celery, Django, and Flask.
* Fixed an issue where ``ignore_exceptions`` wasn't respected.
Version 5.26.0
--------------
* Fixed potential concurrency issue with event IDs in the Flask integration.
* Added a workaround for leakage when broken WSGI middlware or servers are
used that do not call `close()` on the iterat.r
Version 5.25.0
--------------
* Added various improvements for the WSGI and Django support.
* Prevent chained exception recursion
* In environments which look like AWS Lambda or Google App Engine utilize the
synchronous transport.
* Added Celery config option to ignore expected exceptions
* Improved DSN handling in Flask client.
Version 5.24.0
--------------
* Added support for Django 1.10.
* Added support for chained exceptions in Python 3.
* Fixed various behavior with handling template errors in Django 1.8+.
Version 5.23.0
--------------
* Sentry failures now no longer log the failure data in the error
message.
Version 5.22.0
--------------
* Fixed template reporting not working for certain versions of Django.
Version 5.21.0
--------------
* Add formatted attribute to message events
* Fill in empty filename if django fails to give one for
template information on newer Django versions with disabled
debug mode.
Version 5.20.0
--------------
* fixed an error that could cause certain SQL queries to fail to
record as breadcrumbs if no parameters were supplied.
Version 5.19.0
--------------
* remove duration from SQL query breadcrumbs. This was not rendered
in the UI and will come back in future versions of Sentry with a
different interface.
* resolved a bug that caused crumbs to be recorded incorrectly.
Version 5.18.0
--------------
* Breadcrumbs are now attempted to be deduplicated to catch some common
cases where log messages just spam up the breadcrumbs.
* Improvements to the public breadcrumbs API and stabilized some.
* Automatically activate the context on calls to `merge`
Version 5.17.0
--------------
* if breadcrumbs fail to process due to an error they are now skipped.
Version 5.16.0
--------------
* exc_info is no longer included in logger based breadcrumbs.
* log the entire logger name as category.
* added a `enable_breadcrumbs` flag to the client to allow the enabling or
disabling of breadcrumbs quickly.
* corrected an issue where python interpreters with bytecode writing enabled
would report incorrect logging locations when breadcrumb patching for
logging was enabled.
Version 5.15.0
--------------
* Improve thread binding for the context. This makes the main thread never
deactivate the client automatically on clear which means that more code
should automatically support breadcrumbs without changes.
Version 5.14.0
--------------
* Added support for reading git sha's from packed references.
* Detect disabled thread support for uwsgi.
* Added preliminary support for breadcrumbs.
Note: this version adds breadcrumbs to events. This means that if you run a
Sentry version older than 8.5 you will see some warnings in the UI. Consider
using an older version of the client if you do not want to see it.
Version 5.13.0
--------------
* Resolved an issue where Raven would fail with an exception if the
package name did not match the setuptools name in some isolated
cases.
Version 5.12.0
--------------
* Empty and otherwise falsy (None, False, 0) DSN values are now assumed
to be equivalent to no DSN being provided.
Version 5.11.2
--------------
* Added a workaround for back traceback objects passed to raven. In these
cases we now wobble further along to at least log something.
Version 5.11.1
--------------
* The raven client supports the stacktrace to be absent. This improves support
with celery and multiprocessing.
Version 5.11.0
--------------
* ``Client.configure_logging`` has been removed, and handlers will not automatically
be added to 'sentry' and 'raven' namespaces.
* Improved double error check
* Restored support for exc_info is True.
Version 5.10.2
--------------
* Remember exceptions in flight until the context is cleared so that two
reports with the same exception data do not result in two errors
being logged.
* Allow logging exclusions.
Version 5.10.1
--------------
* Fixed a problem where bytes as keys in dictionaries caused problems
on data sanitization if those bytes were outside of the ASCII range.
* Django client no longer requires the user object to be a subclass
of the base model.
* Corrected an issue with the Django log handler which would cause a recursive import.
Version 5.10.0
--------------
* Restore template debug support for Django 1.9 and newer.
* Correctly handle SSL verification disabling for newer Python versions.
Version 5.9.2
-------------
* Correct behavior introduced for Django 1.9.
Version 5.9.1
-------------
* Support for isolated apps in Django 1.9.
Version 5.9.0
-------------
* The threaded worker will now correctly handle forking.
* The 'environment' parameter is now supported (requires a Sentry 8.0 server ).
* 'tags' can now be specified as part of a LoggingHandler's constructor.
Version 5.8.0
-------------
* Added support for detecting `release` on Heroku.
* pkg_resources is now prioritized for default version detection.
* Updated `in_app` support to include exception frames.
* Fixed support for `SENTRY_USER_ATTRS` in Flask.
* Handle DSNs which are sent as unicode values in Python 2.
Version 5.7.2
-------------
* Handle passing ``fingerprint`` through logging handler.
Version 5.7.1
-------------
* Correctly handle SHAs in .git/HEAD.
* Fixed several cases of invalid Python3 syntax.
Version 5.7.0
-------------
* Reverted changes to Celery which incorrectly caused some configurations
to log unwanted messages.
* Improved behavior in ``fetch_git_sha``.
* Removed ``is_authenticated`` property from most integrations.
* Better error handling for errors within Flask context.
* Support for new versions of Flask-Login.
* Update Tornado support for modern versions.
* Update stacktrace truncation code to match current versions of Sentry server.
Version 5.6.0
-------------
* Content is no longer base64-encoded.
* ``fingerprint`` is now correctly supported.
* Django: 1.9 compatibility.
* Celery: Filter ``celery.redirect`` logger.
Version 5.5.0
-------------
* Added ``sys.excepthook`` handler (installed by default).
* Fixed an issue where ``wrap_wsgi`` wasn't being respected.
* Various deprecated code removed.
Version 5.4.4
-------------
* Enforce string-type imports.
Version 5.4.3
-------------
* Python 3 compatibility fixes.
Version 5.4.2
-------------
* Remove scheme checking on transports.
* Added ``SENTRY_TRANSPORT`` to Flask and Django configurations.
Version 5.4.1
-------------
* Fixed packaging of 5.4.0 which erronously kept the ``aiohttp.py`` file in the wheel only.
Version 5.4.0
-------------
* Binding transports via a scheme prefix on DSNs is now deprecated.
* ``raven.conf.load`` has been removed.
* Upstream-related configuration (such as url, project_id, and keys) is now contained in ``RemoteConfig``
attached to ``Client.remote``
* The ``aiohttp`` transport has been moved to ``raven-aiohttp`` package.
Version 5.3.1
-------------
* Restored support for patching Django's BaseCommand.execute.
Version 5.3.0
-------------
* The UDP transport has been removed.
* The integrated Sentry+Django client has been removed. This is now part of Sentry core.
* Server configuration *must* now be specified with a DSN.
* Upstream errors now have increased verbosity in logs.
* Unsent events now log to 'sentry.errors.uncaught'.
* Django management commands should now effectively autopatch (when run from the CLI).
* Flask wrapper now includes user_context, tags_context, and extra_context helpers.
* Python version is now reported with modules.
Version 5.2.0
-------------
* Protocol version is now 6 (requires Sentry 7.0 or newer).
* Added ``release`` option to Client.
* Added ``fetch_git_sha`` helper.
* Added ``fetch_package_version`` helper.
* Added cookie string sanitizing.
* Added threaded request transport: "threaded+requests+http(s)".
Version 5.1.0
-------------
* Added aiohttp transport.
* Corrected behavior with auto_log_stacks and exceptions.
* Add support for certifi.
* Expanded Flask support.
* Expanded Django support.
* Corrected an issue where processors were not correctly applying.
Version 5.0.0
-------------
* Sentry client protocol is now version 5.
* Various improvements to threaded transport.
Version 4.2.0
-------------
* SSL verification is now on by default.
* Rate limits and other valid API errors are now handled more gracefully.
* Added ``last_event_id`` and ``X-Sentry-ID`` header to Flask.
Version 4.1.0
-------------
* Added verify_ssl option to HTTP transport (defaults to False).
* Added capture_locals option (defaults to True).
* message can now be passed to capture* functions.
* Django <1.4 is no longer supported.
* Function object serialization has been improved.
* SanitizePasswordsProcessor removes API keys.
Version 4.0.0
-------------
* Sentry client protocol is now version 4.
Version 3.6.0
-------------
This changelog does not attempt to account for all changes between 3.6.0 and 3.0.0, but
rather focuses on recent important changes
* Transport modules paths have been refactored.
* The threaded transport is now the default.
* Client.context has changed. Please see documentation for new API.
* Client.user_context was added.
* Client.http_context was added.
* Client.extra_context was added.
* Client.tags_context was added.
* Flask support has been greatly improved.
* raven.contrib.celery.Client has been removed as it was invalid.
Version 3.0.0
-------------
Version 3.0 of Raven requires a Sentry server running at least version 5.1, as it implements
version 3 of the protocol.
Support includes:
* Sending 'python' as the platform.
* The 'tags' option (on all constructors that support options).
* Updated authentication header.
Additionally, the following has changed:
* Configuring the client with an empty DSN value will disable sending of messages.
* All clients should now check ``Client.is_enabled()`` to verify if they should send data.
* ``Client.create_from_text`` and ``Client.create_from_exception`` have been removed.
* ``Client.message`` and ``Client.exception`` have been removed.
* The ``key`` setting has been removed.
* The ``DEBUG`` setting in Django no longer disables Raven.
* The ``register_signals`` option in RAVEN_CONFIG (Django) is no longer used.
* A new helper, ``Client.context()`` is now available for scoping options.
* ``Client.captureExceptions`` is now deprecated in favor of ``Client.context``.
* Credit card values will now be sanitized with the default processors.
* A new eventlet+http transport exists.
* A new threaded+http transport exists.
* PyPy is now supported.
* Django 1.5 should now be supported (experimental).
* Gevent 1.0 should now be supported (experimental).
* Python 2.5 is no longer supported.
* [Django] The ``skip_sentry`` attribute is no longer supported. A new option config option has replaced this: ``SENTRY_IGNORE_EXCEPTIONS``.
Version 2.0.0
-------------
* New serializers exist (and can be registered) against Raven. See ``raven.utils.serializer`` for more information.
* You can now pass ``tags`` to the ``capture`` method. This will require a Sentry server compatible with the new
tags protocol.
* A new gevent+http transport exists.
* A new tornado+http transport exists.
* A new twisted+http transport exists.
* Zope integration has been added. See docs for more information.
* PasteDeploy integration has been added. See docs for more information.
* A Django endpoint now exists for proxying requests to Sentry. See ``raven.contrib.django.views`` for more information.
Version 1.9.0
-------------
* Signatures are no longer sent with messages. This requires the server version to be at least 4.4.6.
* Several fixes and additions were added to the Django report view.
* ``long`` types are now handled in transform().
* Improved integration with Celery (and django-celery) for capturing errors.
Version 1.8.0
-------------
* There is now a builtin view as part of the Django integration for sending events server-side
(from the client) to Sentry. The view is currently undocumented, but is available as ``{% url raven-report %}``
and will use your server side credentials. To use this view you'd simply swap out the servers configuration in
raven-js and point it to the given URL.
* A new middleware for ZeroRPC now exists.
* A new protocol for registering transports now exists.
* Corrected some behavior in the UDP transport.
* Celery signals are now connected by default within the Django integration.
Version 1.7.0
-------------
* The password sanitizer will now attempt to sanitize key=value pairs within strings (such as the querystring).
* Two new santiziers were added: RemoveStackLocalsProcessor and RemovePostDataProcessor
Version 1.6.0
-------------
* Stacks must now be passed as a list of tuples (frame, lineno) rather than a list of frames. This
includes calls to logging (extra={'stack': []}), as well as explicit client calls (capture(stack=[])).
This corrects some issues (mostly in tracebacks) with the wrong lineno being reported for a frame.
Version 1.4.0
-------------
* Raven now tracks the state of the Sentry server. If it receives an error, it will slow down
requests to the server (by passing them into a named logger, sentry.errors), and increasingly
delay the next try with repeated failures, up to about a minute.
Version 1.3.6
-------------
* gunicorn is now disabled in default logging configuration
Version 1.3.5
-------------
* Moved exception and message methods to capture{Exception,Message}.
* Added captureQuery method.
Version 1.3.4
-------------
* Corrected duplicate DSN behavior in Django client.
Version 1.3.3
-------------
* Django can now be configured by setting SENTRY_DSN.
* Improve logging for send_remote failures (and correct issue created when
send_encoded was introduced).
* Renamed SantizePassworsProcessor to SanitizePassworsProcessor.
Version 1.3.2
-------------
* Support sending the culprit with logging messages as part of extra.
Version 1.3.1
-------------
* Added client.exception and client.message shortcuts.
Version 1.3.0
-------------
* Refactored client send API to be more easily extensible.
* MOAR TESTS!
Version 1.2.2
-------------
* Gracefully handle exceptions in Django client when using integrated
setup.
* Added Client.error_logger as a new logger instance that points to
``sentry.errors``.
Version 1.2.1
-------------
* Corrected behavior with raven logging errors to send_remote
which could potentially cause a very large backlog to Sentry
when it should just log to ``sentry.errors``.
* Ensure the ``site`` argument is sent to the server.
Version 1.2.0
-------------
* Made DSN a first-class citizen throughout Raven.
* Added a Pylons-specific WSGI middleware.
* Improved the generic WSGI middleware to capture HTTP information.
* Improved logging and logbook handlers.
Version 1.1.6
-------------
* Corrected logging stack behavior so that it doesnt capture raven+logging
extensions are part of the frames.
Version 1.1.5
-------------
* Remove logging attr magic.
Version 1.1.4
-------------
* Correct encoding behavior on bool and float types.
Version 1.1.3
-------------
* Fix 'request' attribute on Django logging.
Version 1.1.2
-------------
* Corrected logging behavior with extra data to match pre 1.x behavior.
Version 1.1.1
-------------
* Handle frames that are missing f_globals and f_locals.
* Stricter conversion of int and boolean values.
* Handle invalid sources for templates in Django.
Version 1.1.0
-------------
* varmap was refactored to send keys back to callbacks.
* SanitizePasswordProcessor now handles http data.
Version 1.0.5
-------------
* Renaming raven2 to raven as it causes too many issues.
Version 1.0.4
-------------
* Corrected a bug in setup_logging.
* Raven now sends "sentry_version" header which is the expected
server version.
Version 1.0.3
-------------
* Handle more edge cases on stack iteration.
Version 1.0.2
-------------
* Gracefully handle invalid f_locals.
Version 1.0.1
-------------
* All datetimes are assumed to be utcnow() as of Sentry 2.0.0-RC5
Version 1.0.0
-------------
* Now only works with Sentry>=2.0.0 server.
* Raven is now listed as raven2 on PyPi.
Version 0.8.0
-------------
* raven.contrib.celery is now useable.
* raven.contrib.django.celery is now useable.
* Fixed a bug with request.raw_post_data buffering in Django.
Version 0.7.1
-------------
* Servers would stop iterating after the first successful post which was not the
intended behavior.
Version 0.7.0
-------------
* You can now explicitly pass a list of frame objects to the process method.
Version 0.6.1
-------------
* The default logging handler (SentryHandler) will now accept a set of kwargs to instantiate
a new client with (GH-10).
* Fixed a bug with checksum generation when module or function were missing (GH-9).
Version 0.6.0
-------------
* Added a Django-specific WSGI middleware.
Version 0.5.1
-------------
* Two minor fixes for the Django client:
* Ensure the __sentry__ key exists in data in (GH-8).
* properly set kwargs['data'] to an empty list when its a NoneType (GH-6).
Version 0.5.0
-------------
* Require ``servers`` on base Client.
* Added support for the ``site`` option in Client.
* Moved raven.contrib.django.logging to raven.contrib.django.handlers.
Version 0.4.0
-------------
* Fixed an infinite loop in iter_tb.
Version 0.3.0
-------------
* Removed the ``thrashed`` key in ``request.sentry`` for the Django integration.
* Changed the logging handler to correctly inherit old-style classes (GH-1).
* Added a ``client`` argument to ``raven.contrib.django.models.get_client()``.
Version 0.2.0
-------------
* auto_log_stacks now works with create_from_text
* added Client.get_ident
Version 0.1.0
-------------
* Initial version of Raven (extracted from django-sentry 1.12.1).