
# (optional) Exceptions are logged by default, to disable, set this to False.

# (optional) To log arguments passed into the views as custom properties, # (optional) By default, request names are logged as the request method # (required) Your Application Insights instrumentation key '', # Add this middleware to the endĪnd then, add the following to your settings.py file: To enable, add this class to your settings.py file in MIDDLEWARE_CLASSES (pre-1.10) or MIDDLEWARE (1.10 and newer):

This class is a Django middleware that automatically enables request and exception telemetry. Feedback In this article Classes ApplicationInsightsMiddleware
