{"id":19163318,"url":"https://github.com/programmer-ke/dj-datadog","last_synced_at":"2025-07-28T14:33:47.400Z","repository":{"id":142051172,"uuid":"62619598","full_name":"programmer-ke/dj-datadog","owner":"programmer-ke","description":"A simple Django middleware for submitting timings and exceptions to Datadog.","archived":false,"fork":false,"pushed_at":"2016-11-01T09:03:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T21:43:36.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/programmer-ke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-05T08:32:40.000Z","updated_at":"2016-07-05T08:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"92d923e1-fbbc-49af-a7d6-4a59e78ddb06","html_url":"https://github.com/programmer-ke/dj-datadog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fdj-datadog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fdj-datadog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fdj-datadog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fdj-datadog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmer-ke","download_url":"https://codeload.github.com/programmer-ke/dj-datadog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245887,"owners_count":19771029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T09:14:48.743Z","updated_at":"2025-02-22T22:42:46.311Z","avatar_url":"https://github.com/programmer-ke.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Datadog\n\nA simple Django middleware for submitting timings and exceptions to Datadog.\n\nThis is a derivative work of conorbranagan's package \nhttps://github.com/conorbranagan/django-datadog updated to use the latest python\ndatadog API.\n\n## Installation\n\nDownload the code into your project and install it.\n\n```bash\ngit clone git://github.com/krmboya/dj-datadog.git\ncd dj-datadog\npython setup.py install\n```\n\nAdd `dj_datadog` to your list of installed apps.\n\n```python\nINSTALLED_APPS += ('dj_datadog',)\n```\n\nAdd the following configuration to your projects' `settings.py` file:\n\n```python\nDATADOG_API_KEY = 'YOUR_API_KEY'\nDATADOG_APP_KEY = 'YOUR_APP_KEY'\nDATADOG_APP_NAME = 'my_app' # Used to namespace metric names\n```\n\nThe API and app keys can be found at https://app.datadoghq.com/account/settings#api\n\nAdd the Datadog request handler to your middleware in `settings.py`.\n\n```python\nMIDDLEWARE_CLASSES += ('dj_datadog.middleware.DatadogMiddleware',)\n```\n\nIf you want log the wsgi process memory spikes per request/response cycle, add \nthe memory profiling middleware (see [this link][1] for more info)\n\n[1]: https://stackoverflow.com/a/12254394\n\n```python\nMIDDLEWARE_CLASSES += ('dj_datadog.middleware.MemoryUsageMiddleware',)\n```\n\nFor local development, you can add this to your `settings.py` file:\n\n```python\nDJ_DATADOG_DEBUG = True\n```\n\nThe metrics will then be logged locally instead of making requests to Datadog.\n\n## Usage\n\nOnce the middlewhere installed, you'll start receiving events in your Datadog\nstream in the case of an app exception.\n\nYou will also have the following new metrics available:\n\n- `my_app.request_time.{avg,max,min}` in seconds\n- `my_app.errors`\n- `my_app.memory_usage` in MB (if the memory usage middleware is used)\n\nMetrics are tagged with `path:/path/to/view`\n\nNote: `my_app` will be replaced by whatever value you give for `DATADOG_APP_NAME`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammer-ke%2Fdj-datadog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammer-ke%2Fdj-datadog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammer-ke%2Fdj-datadog/lists"}