File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1818
1919class TraceMiddleware (object ):
2020 def __init__ (self ):
21+ # TODO[manu]: maybe we can formalize better DJANGO_SETTINGS_* stuff
22+ # providing defaults or raise ImproperlyConfigured errors
2123 tracer_import = getattr (settings , 'DATADOG_TRACER' , 'ddtrace.tracer' )
2224 self .tracer = import_from_string (tracer_import , 'DATADOG_TRACER' )
2325 self .service = getattr (settings , 'DATADOG_SERVICE' , 'django' )
@@ -29,6 +31,9 @@ def __init__(self):
2931 )
3032
3133 try :
34+ # TODO[manu]: maybe it's better to provide a Django app that
35+ # will patch everything once instead of trying that for
36+ # each request (in the case of patch_db)?
3237 patch_template (self .tracer )
3338 except Exception :
3439 log .exception ("error patching template class" )
You can’t perform that action at this time.
0 commit comments