David Cramer
683acffedc
Bump protocol version to explicit 5
2014-05-28 21:53:53 -07:00
David Cramer
b9bd240a79
Merge branch 'raise_send_errors' of https://github.com/richg/raven-python into richg-raise_send_errors
...
Conflicts:
raven/base.py
raven/contrib/django/client.py
raven/handlers/logbook.py
raven/handlers/logging.py
tests/handlers/logging/tests.py
2014-05-22 00:25:46 -07:00
David Cramer
39c65bf8b5
Update interfaces to use protocol 5/aliases
2014-05-20 12:02:18 -07:00
Alex Gaynor
c0dedcd29d
Fixed several typos
2014-05-10 11:14:16 -07:00
Marius Gedminas
339319da1f
Fix Client.get_ident() example in docstring
...
raven.base.Client doesn't have a `process()` method.
2014-04-16 19:29:20 +03:00
Matt Robenolt
6db3d8dffb
Turns out, rate limiting is it's own exception
2014-04-14 22:21:52 -07:00
Matt Robenolt
31b87f5864
Support server sending back Retry-After header for rate limiting
2014-04-13 16:38:05 -04:00
Matt Robenolt
37aaf0862e
bare except
2014-04-13 02:33:47 -04:00
David Cramer
4b758cbf70
Improve behavior when API returns valid errors
2014-03-31 21:11:29 -07:00
Pr0Ger
6ecb5b3cba
Removed unused assignment
2014-03-30 15:16:24 +04:00
David Cramer
b148760f90
Merge pull request #432 from andor44/decorator
...
Decorator for captureException
2014-03-28 16:29:46 -07:00
Daniel Hahler
bec749b199
Fix client.capture to use message from kwargs
...
Ref: https://github.com/getsentry/sentry/issues/1153
2014-03-19 09:10:32 +01:00
Andor Uhlár
9247cea3e6
Add capture_exceptions decorator.
...
This decorator wraps functions in a try/except block, calling captureException
if it fails, then reraising it.
2014-03-18 16:55:34 +01:00
David Cramer
092e087d42
Merge branch 'master' into cap-number-of-frames
...
Conflicts:
raven/base.py
raven/events.py
raven/utils/stacks.py
2014-03-12 02:41:13 -07:00
David Cramer
ddcc79e7e6
Explicitly pass capture_locals to get_stack_info
2014-03-12 02:39:24 -07:00
Anton Ilyushenkov
db73ef5fe7
\#426 stacks_without_locals renamed to capture_locals
2014-03-11 13:38:53 +04:00
Anton Ilyushenkov
1cf44a0624
[issues/417] #417 stacks_without_locals Client option
2014-03-07 20:24:22 +04:00
Matt Robenolt
c8222cb6ca
Fix mutable kwargs
2014-02-01 18:58:16 -08:00
David Cramer
45f31036db
Dont warn unless value is set
2013-12-28 19:28:53 -08:00
David Cramer
4871a0be32
More fixes for binding stacktrace to exception
2013-12-17 01:58:53 -08:00
David Cramer
fffc2dd21b
Protocol version 4
2013-12-17 01:44:27 -08:00
David Cramer
c1597c65e1
Docstrings for various context methods
2013-12-11 20:01:43 -08:00
David Cramer
2a52fed9f0
Remove example of instantiating client without DSN
2013-12-09 23:38:25 -08:00
David Cramer
02df9576cf
Refactor transport namespace
...
- Deprecate non-DSN configurations
- Break each transport into its own module space
- Generically handle querystrings-as-options
2013-12-09 23:29:28 -08:00
David Cramer
6f03dee429
New context() API
...
This makes the API much easier to use, and resembles the raven-ruby implementation. Users can continually merge context (generally within their middleware), and simply need to call context.clear() to refresh it.
The following APIs are added as part of this changeset:
```
Client.context -- the accessible context instance
>>> Client.context.get()
Client.context.clear() -- flush the current context
>>> Client.context.clear()
Client.user_context() -- a shortcut to set the user interface
>>> Client.user_context({'email': 'foo@example.com'})
Client.tags_context() -- add additional tags to context (or overwrite an existing tag)
>>> Client.tags_context({'key': 'value'})
Client.extra_context() -- add additional data to context (or overwrite an existing key in the data)
>>> Client.extra_context({'key': 'value'})
```
2013-12-02 20:08:51 -08:00
David Cramer
9aa75065eb
Truncate frames a maximum of 50
2013-11-29 19:38:14 -08:00
Xavier Ordoquy
2fb48eb52d
Fixed linking error
2013-11-05 18:35:35 +01:00
Jason R. Coombs
05d4ed09c9
Update base.py
...
Document captureException kwargs parameter.
2013-11-05 10:32:56 -05:00
David Cramer
282bcac635
Allow default tag context to be set
2013-10-10 22:50:03 -07:00
David Cramer
ca5104a759
clarify time_spent, and note that it should be an integer
2013-09-28 19:39:10 -07:00
David Cramer
2944b31ca7
Update API endpoint to include project ID
2013-07-02 06:59:27 +02:00
David Cramer
3bc2889c3c
Ensure we dont try to reconfigure logging (check handlers)
2013-05-06 13:06:09 -07:00
David Cramer
a871dd40da
Configure logging, because no one else will
2013-05-06 13:03:57 -07:00
David Cramer
7ad7ba97dc
lint and minor cleanup
2013-05-06 00:40:11 -07:00
David Cramer
373e2d4246
Add debug logging for message sending
2013-05-06 00:35:35 -07:00
Xavier Ordoquy
64ec03799e
Reverted a few changes from the previous commit
2013-04-24 01:41:20 +02:00
Matt George
6cc6f86bfa
changes that allow test suite to run in python3
2013-04-24 01:39:16 +02:00
David Cramer
e93b64da92
minor style cleanup
2013-04-22 21:27:59 -07:00
David Cramer
374b1e29d9
Remove checksums
2013-04-03 23:21:08 -07:00
David Cramer
26e1a25e78
Dont try to coerce keys in extra data
2013-03-31 03:07:26 -07:00
David Cramer
7a917c1058
Proper repr of all variables
2013-03-31 02:12:50 -07:00
Xavier Ordoquy
525778d476
Use six and compat module to provide a python3 compatibility.
2013-03-29 00:14:19 +01:00
Xavier Ordoquy
cda7fb8505
zlib codec has been removed in python3.
2013-03-29 00:14:19 +01:00
Simon Cross
c5645d8e2b
Implement error handling and rate-limiting for asynchronous transports.
2013-03-20 08:51:30 +02:00
Xavier Ordoquy
8bba42b4d5
Use new style exceptions.
2013-03-17 09:11:26 +01:00
David Cramer
d490db2f96
Dont try to return a public_dsn if Raven is disabled
2013-02-13 14:21:34 -08:00
David Cramer
7a8bd278ae
Allow exclusion of module version data via the 'include_versions' option (fixes GH-230)
2013-02-08 01:21:24 -08:00
David Cramer
7f0fcb6f06
Frames from raven are never part of your application
2013-02-07 12:58:02 -08:00
David Cramer
f3b0b21487
Improve how we label unknown functions and modules, and remove the function from the include path detection
2013-02-07 11:40:48 -08:00
David Cramer
2c3acebf9f
Bind the first instantiated client to the Raven singleton
2013-02-03 14:21:35 -08:00