Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit df83b41

Browse files
timgrahamc24t
authored andcommitted
Fix OpencensusMiddleware path in MIDDLEWARE (#704)
1 parent 505dedd commit df83b41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/opencensus-ext-django/examples/app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'django.contrib.messages.middleware.MessageMiddleware',
4141
'django.middleware.clickjacking.XFrameOptionsMiddleware',
4242
'django.middleware.security.SecurityMiddleware',
43-
'opencensus.trace.ext.django.middleware.OpencensusMiddleware',
43+
'opencensus.ext.django.middleware.OpencensusMiddleware',
4444
)
4545

4646
ROOT_URLCONF = 'app.urls'

docs/trace/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ the ``MIDDLEWARE`` section in the Django ``settings.py`` file.
214214
215215
MIDDLEWARE = [
216216
...
217-
'opencensus.trace.ext.django.middleware.OpencensusMiddleware',
217+
'opencensus.ext.django.middleware.OpencensusMiddleware',
218218
]
219219
220220
And add this line to the ``INSTALLED_APPS`` section:

0 commit comments

Comments
 (0)