Skip to content

Commit 4e36ab5

Browse files
committed
Imported new docs for federation
1 parent 4eb5ec6 commit 4e36ab5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1025
-2138
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ celerybeat-schedule
1717
/dist
1818
/env
1919
/node_modules/
20-
/docs/html
21-
/docs/doctrees
20+
/docs/_build
2221
example/db.sqlite
2322
/src/sentry/static/sentry/dist/
2423
/src/sentry/static/sentry/vendor/

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/_sentryext"]
2+
path = docs/_sentryext
3+
url = https://github.com/getsentry/sentry-doc-support

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dev-mysql: develop
1818
pip install "file://`pwd`#egg=sentry[mysql]"
1919

2020
dev-docs:
21-
pip install -r docs/requirements.txt
21+
pip install -r doc-requirements.txt
2222

2323
reset-db:
2424
@echo "--> Dropping existing 'sentry' database"
File renamed without changes.

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
8-
BUILDDIR = ./
8+
BUILDDIR = ./_build
99

1010
# Internal variables.
1111
PAPEROPT_a4 = -D latex_paper_size=a4

docs/_sentryext

Submodule _sentryext added at 7a2aab7

docs/beacon.rst

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
Beacon
22
======
33

4-
Sentry will periodically communicate with a remote beacon server. This is utilized for a couple of things, primarily:
4+
Sentry will periodically communicate with a remote beacon server. This is
5+
utilized for a couple of things, primarily:
56

67
- Getting information about the current version of Sentry
78
- Retrieving important system notices
89

9-
The remote server is operated by the Sentry team (getsentry.com), and the information reported follows the company's `privacy policy <https://www.getsentry.com/privacy/>`_.
10+
The remote server is operated by the Sentry team (getsentry.com), and the
11+
information reported follows the company's `privacy policy
12+
<https://www.getsentry.com/privacy/>`_.
1013

1114
The following information is reported:
1215

1316
- A unique installation ID
1417
- The version of Sentry
1518
- A technical contact email (``SENTRY_ADMIN_EMAIL``)
16-
- General anonymous statistics on the data pattern (such as the number of users)
19+
- General anonymous statistics on the data pattern (such as the number of
20+
users)
1721

18-
Note: The contact email is utilized for security announcements, and will never be used outside of such.
22+
Note: The contact email is utilized for security announcements, and will
23+
never be used outside of such.
1924

20-
The data reported is minimal and it greatly helps the development team behind Sentry. With that said, you can disable the beacon with the following setting:
21-
22-
.. code-block:: python
25+
The data reported is minimal and it greatly helps the development team
26+
behind Sentry. With that said, you can disable the beacon with the
27+
following setting::
2328

2429
SENTRY_BEACON = False

docs/buffer.rst

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Updating Buffers
2+
================
3+
4+
Sentry provides the ability to buffer certain updates to events, such as
5+
counts and timestamps. This is extremely helpful if you have high
6+
concurrency, especially if they're frequently the same event.
7+
8+
For example, if you happen to receive 100,000 events/second, and 10% of
9+
those are reporting a connection issue to the database (where they'd get
10+
grouped together), enabling a buffer backend will change things so that
11+
each count update is actually put into a queue, and all updates are
12+
performed at the rate of how fast the queue can keep up.
13+
14+
Choosing a Backend
15+
------------------
16+
17+
To specify a backend, simply modify the ``SENTRY_BUFFER`` and
18+
``SENTRY_BUFFER_OPTIONS`` values in your configuration::
19+
20+
SENTRY_BUFFER = 'sentry.buffer.base.Buffer'
21+
SENTRY_BUFFER_OPTIONS = {}
22+
23+
24+
The Redis Backend
25+
-----------------
26+
27+
Configuring the Redis backend **requires the queue** or you won't see any
28+
gains (in fact you'll just negatively impact your performance).
29+
30+
Configuration is fairly straight forward::
31+
32+
SENTRY_BUFFER = 'sentry.buffer.redis.RedisBuffer'
33+
SENTRY_BUFFER_OPTIONS = {
34+
'hosts': {
35+
0: {
36+
'host': 'localhost',
37+
'port': 6379
38+
}
39+
}
40+
}
41+
42+
Because the Redis buffer relies on the Nydus package, this gives you the
43+
ability to specify multiple nodes and have keys automatically distributed.
44+
It's unlikely that you'll need this functionality, but if you do, a simple
45+
configuration might look like this::
46+
47+
SENTRY_BUFFER_OPTIONS = {
48+
'hosts': {
49+
0: {
50+
'host': '192.168.1.1'
51+
},
52+
1: {
53+
'host': '192.168.1.2'
54+
}
55+
},
56+
}
57+
58+
With the default configuration this will distribute keys using a simple
59+
partition router (relatively even distribution).

docs/buffer/index.rst

-61
This file was deleted.

docs/changelog.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Changelog
2+
=========
3+
4+
.. include:: ../CHANGES

docs/changelog/index.rst

-4
This file was deleted.

docs/cli/index.rst docs/cli.rst

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
Command Line Usage
22
==================
33

4-
Sentry installs a command line script under the name ``sentry``. This will allow you to
5-
perform most required operations that are unachievable within the web UI.
4+
Sentry installs a command line script under the name ``sentry``. This will
5+
allow you to perform most required operations that are unachievable within
6+
the web UI.
67

7-
If you're using a non-standard configuration location you'll need to use the SENTRY_CONF environment
8-
variable to specify the path:
8+
If you're using a non-standard configuration location, you'll need to
9+
prefix every command with --config (excluding init, which is a special
10+
case). For example::
911

10-
SENTRY_CONF=/etc/sentry.conf.py sentry help
12+
sentry --config=/etc/sentry.conf.py help
1113

12-
For a list of commands, you can also use ``sentry help``, or ``sentry [command] --help``
13-
for help on a specific command.
14-
15-
.. note:: The script is powered by a library called `Logan <https://github.com/dcramer/logan>`_
16-
and simply acts as a conduit to django-admin.py.
14+
For a list of commands, you can also use ``sentry help``, or ``sentry
15+
[command] --help`` for help on a specific command.
1716

1817
Builtin Commands
1918
----------------
2019

21-
.. data:: init [config]
20+
.. describe:: init [config]
2221

2322
Initializes the configuration file for Sentry.
2423

@@ -28,32 +27,32 @@ Builtin Commands
2827

2928
sentry init /etc/sentry.conf.py
3029

31-
.. note:: The init command requires you to pass the configuration value as the parameter whereas other
32-
commands require you to use SENTRY_CONF for passing the location of this file.
30+
.. note:: The init command requires you to pass the configuration
31+
value as the parameter whereas other commands require you
32+
to use --config for passing the location of this file.
3333

34-
.. data:: start [service]
34+
.. describe:: start [service]
3535

3636
Starts a Sentry service. By default this value is 'http'.
3737

3838
::
3939

4040
sentry start
4141

42-
.. data:: upgrade
42+
.. describe:: upgrade
4343

4444
Performs any needed database migrations. This is similar to running
4545
``django-admin.py syncdb --migrate``.
4646

47-
.. data:: cleanup
47+
.. describe:: cleanup
4848

4949
Performs all trim operations based on your configuration.
5050

51-
.. data:: repair
51+
.. describe:: repair
5252

5353
Performs any needed repair against the Sentry database. This will attempt to correct
5454
things like missing teams, project keys, etc.
5555

5656
If you specify ``--owner`` it will also update ownerless projects::
5757

5858
sentry repair --owner=<username>
59-

docs/client/index.rst

-41
This file was deleted.

docs/conf.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
latex_documents = [
200200
(
201201
'index', 'Sentry.tex', u'Sentry Documentation',
202-
u'David Cramer', 'manual'
202+
u'Functional Software Inc.', 'manual'
203203
),
204204
]
205205

@@ -233,5 +233,10 @@
233233
# (source start file, name, description, authors, manual section).
234234
man_pages = [
235235
('index', 'sentry', u'Sentry Documentation',
236-
[u'David Cramer'], 1)
236+
[u'Functional Software Inc.'], 1)
237237
]
238+
239+
if os.environ.get('SENTRY_FEDERATED_DOCS') != '1':
240+
sys.path.insert(0, os.path.abspath('_sentryext'))
241+
import sentryext
242+
sentryext.activate()

0 commit comments

Comments
 (0)