|
42 | 42 | tracer is used. |
43 | 43 | * ``DEFAULT_SERVICE`` (default: ``django``): set the service name used by the |
44 | 44 | tracer. Usually this configuration must be updated with a meaningful name. |
45 | | -* ``ENABLED``: (default: ``not django_settings.DEBUG``): set if the tracer |
46 | | - is enabled or not. When a tracer is disabled, Django internals are not |
47 | | - automatically instrumented and the requests are not traced even if the |
48 | | - ``TraceMiddleware`` is properly installed. This setting cannot be changed |
49 | | - at runtime and a restart is required. By default the tracer is disabled |
50 | | - when in ``DEBUG`` mode, enabled otherwise. |
| 45 | +* ``ENABLED`` (default: ``not django_settings.DEBUG``): defines if the tracer is |
| 46 | + enabled or not. If set to false, the code is still instrumented but no spans |
| 47 | + are sent to the trace agent. This setting cannot be changed at runtime |
| 48 | + and a restart is required. By default the tracer is disabled when in ``DEBUG`` |
| 49 | + mode, enabled otherwise. |
| 50 | +* ``AUTO_INSTRUMENT`` (default: ``True``): if set to false the code will not be |
| 51 | + instrumented, while the tracer may be active for your internal usage. This could |
| 52 | + be useful if you want to use the Django integration, but you want to trace only |
| 53 | + particular functions or views. If set to False, the request middleware will be |
| 54 | + disabled even if present. |
| 55 | +* ``AGENT_HOSTNAME`` (default: ``localhost``): define the hostname of the trace agent. |
| 56 | +* ``AGENT_PORT`` (default: ``7777``): define the port of the trace agent. |
51 | 57 | """ |
52 | 58 | from ..util import require_modules |
53 | 59 |
|
|
0 commit comments