Skip to content

Commit 5a7a253

Browse files
committed
Some brief docs on transports
1 parent 4b758cb commit 5a7a253

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Users Guide
1414
install/index
1515
config/index
1616
usage
17+
transports/index
1718

1819
Developers
1920
----------

docs/transports/index.rst

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
Transports
2+
==========
3+
4+
A transport is the mechanism in which Raven sends the HTTP request to the Sentry server. By default, Raven uses a threaded asynchronous transport, but you can easily adjust this by modifying your ``SENTRY_DSN`` value.
5+
6+
Transport registration is done via the URL prefix, so for example, a synchronous transport is as simple as prefixing your ``SENTRY_DSN`` with the ``sync+`` value.
7+
8+
Eventlet
9+
--------
10+
11+
Should only be used within an Eventlet IO loop.
12+
13+
::
14+
15+
SENTRY_DSN = 'eventlet+http://public:[email protected]/1'
16+
17+
18+
Gevent
19+
------
20+
21+
Should only be used within a Gevent IO loop.
22+
23+
::
24+
25+
SENTRY_DSN = 'gevent+http://public:[email protected]/1'
26+
27+
28+
Requests
29+
--------
30+
31+
Requires the ``requests`` library. Synchronous.
32+
33+
::
34+
35+
SENTRY_DSN = 'gevent+http://public:[email protected]/1'
36+
37+
38+
Sync
39+
----
40+
41+
A synchronous blocking transport.
42+
43+
::
44+
45+
SENTRY_DSN = 'sync+http://public:[email protected]/1'
46+
47+
48+
Threaded (Default)
49+
------------------
50+
51+
Spawns a async worked for processing messages.
52+
53+
::
54+
55+
SENTRY_DSN = 'threaded+http://public:[email protected]/1'
56+
57+
58+
Tornado
59+
-------
60+
61+
Should only be used within a Tornado IO loop.
62+
63+
::
64+
65+
SENTRY_DSN = 'tornado+http://public:[email protected]/1'
66+
67+
68+
Twisted
69+
-------
70+
71+
Should only be used within a Twisted event loop.
72+
73+
::
74+
75+
SENTRY_DSN = 'twisted+http://public:[email protected]/1'
76+

0 commit comments

Comments
 (0)