Python Instrumentation

Python Agent

Please see our Python - Supported Technologies page for additional information on our application stacks supported by our Python agent.

Installation

Configuration

  • The Python agent is implemented as a middleware, add the following to the Django settings.py file:
    MIDDLEWARE = [ 
      'contrast.agent.middlewares.django_middleware.DjangoMiddleware’, 
      # OTHER MIDDLEWARE,
    ]
    
  • Config via contrast_security.yaml file in your app’s root dir