Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contrib/opencensus-ext-django/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
- Make ProbabilitySampler default
- Remove support for Django < 1.11.
- Allow installing with Django 2.0 and later.

## 0.3.0
Released 2019-04-24
Expand Down
4 changes: 2 additions & 2 deletions contrib/opencensus-ext-django/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Usage
-----

For tracing Django requests, you will need to add the following line to
the ``MIDDLEWARE_CLASSES`` section in the Django ``settings.py`` file.
the ``MIDDLEWARE`` section in the Django ``settings.py`` file.

.. code:: python

MIDDLEWARE_CLASSES = [
MIDDLEWARE = [
...
'opencensus.ext.django.middleware.OpencensusMiddleware',
]
Expand Down
6 changes: 5 additions & 1 deletion contrib/opencensus-ext-django/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
Expand All @@ -39,7 +43,7 @@
include_package_data=True,
long_description=open('README.rst').read(),
install_requires=[
'Django >= 1.11.0, < 1.12.0',
'Django >= 1.11',
'opencensus >= 0.7.dev0, < 1.0.0',
],
extras_require={},
Expand Down
4 changes: 2 additions & 2 deletions docs/trace/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ Django
~~~~~~

For tracing Django requests, you will need to add the following line to
the ``MIDDLEWARE_CLASSES`` section in the Django ``settings.py`` file.
the ``MIDDLEWARE`` section in the Django ``settings.py`` file.

.. code:: python

MIDDLEWARE_CLASSES = [
MIDDLEWARE = [
...
'opencensus.trace.ext.django.middleware.OpencensusMiddleware',
]
Expand Down