<commit_before>Configuration
=============

This document describes additional configuration options available to the Sentry server. If you are looking for documentation for the client, it is maintained in the `Raven <http://github.com/getsentry/raven-python>`_ project.

.. note:: While the options below are labeled without the ``SENTRY_`` prefix, when you are configuring them via your ``settings.py`` you **must** specify the prefix.

.. data:: SENTRY_KEY
    :noindex:

    The shared secret for global administration privileges via the API.

    We recommend using Project API keys to maintain access, as using a shared key provides a potential security risk.

    ::

    	SENTRY_KEY = '<KEY>'

.. data:: SENTRY_URL_PREFIX
    :noindex:

	Absolute URL to the sentry root directory. Should not include a trailing slash.

	Defaults to ``""``.

	::

		SENTRY_URL_PREFIX = '/sentry'

.. data:: SENTRY_SAMPLE_DATA
    :noindex:

	.. versionadded:: 1.10.0

	Controls sampling of data.

	Defaults to ``True``.

	If this is enabled, data will be sampled in a manner similar to the following:

	* 50 messages stores ~50 results
	* 1000 messages stores ~400 results
	* 10000 messages stores ~900 results
	* 100000 messages stores ~1800 results
	* 1000000 messages stores ~3600 results
	* 10000000 messages stores ~4500 results

	::

		SENTRY_SAMPLE_DATA = False

.. data:: SENTRY_LOG_LEVELS
    :noindex:

    A list of log levels, with their numeric value, as well as their short name.
<commit_msg>Update SENTRY_URL_PREFIX example<commit_after>Configuration
=============

This document describes additional configuration options available to the Sentry server. If you are looking for documentation for the client, it is maintained in the `Raven <http://github.com/getsentry/raven-python>`_ project.

.. note:: While the options below are labeled without the ``SENTRY_`` prefix, when you are configuring them via your ``settings.py`` you **must** specify the prefix.

.. data:: SENTRY_KEY
    :noindex:

    The shared secret for global administration privileges via the API.

    We recommend using Project API keys to maintain access, as using a shared key provides a potential security risk.

    ::

    	SENTRY_KEY = '<KEY>'

.. data:: SENTRY_URL_PREFIX
    :noindex:

	Absolute URL to the sentry root directory. Should not include a trailing slash.

	Defaults to ``""``.

	::

		SENTRY_URL_PREFIX = 'http://sentry.example.com'

.. data:: SENTRY_SAMPLE_DATA
    :noindex:

	.. versionadded:: 1.10.0

	Controls sampling of data.

	Defaults to ``True``.

	If this is enabled, data will be sampled in a manner similar to the following:

	* 50 messages stores ~50 results
	* 1000 messages stores ~400 results
	* 10000 messages stores ~900 results
	* 100000 messages stores ~1800 results
	* 1000000 messages stores ~3600 results
	* 10000000 messages stores ~4500 results

	::

		SENTRY_SAMPLE_DATA = False

.. data:: SENTRY_LOG_LEVELS
    :noindex:

    A list of log levels, with their numeric value, as well as their short name.

{'fraction_non_alphanumeric': 0.08715747771541763, 'fraction_numerical': 0.03697589963684384, 'mean_word_length': 3.779179810725552, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2446446', 'n_tokens_mistral': 956, 'n_tokens_neox': 813, 'n_words': 370}