File tree 2 files changed +2
-1
lines changed
instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
28
- ` opentelemetry-instrumentation-asgi ` ASGI: Conditionally create SERVER spans
29
29
([ #843 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/843 ) )
30
30
31
+ - ` opentelemetry-instrumentation-django ` Django: fix issue preventing detection of MIDDLEWARE_CLASSES
31
32
32
33
## [ 1.8.0-0.27b0] ( https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.8.0-0.27b0 ) - 2021-12-17
33
34
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def _get_django_middleware_setting() -> str:
105
105
# In Django versions 1.x, setting MIDDLEWARE_CLASSES can be used as a legacy
106
106
# alternative to MIDDLEWARE. This is the case when `settings.MIDDLEWARE` has
107
107
# its default value (`None`).
108
- if not DJANGO_2_0 and getattr (settings , "MIDDLEWARE" , [] ) is None :
108
+ if not DJANGO_2_0 and getattr (settings , "MIDDLEWARE" , None ) is None :
109
109
return "MIDDLEWARE_CLASSES"
110
110
return "MIDDLEWARE"
111
111
You can’t perform that action at this time.
0 commit comments