Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assign HttpRequest.resolver_match for dd-trace (#5)
Once a request is determined to be a health or readiness check, its [`resolver_match`][0] attribute is assigned so that [ddtrace][1] can give its span a proper resource name ("GET /healthz" or "GET /readiness"). Referenced ddtrace implementation: [`/ddtrace/contrib/django/utils.py`][2] [0]: https://docs.djangoproject.com/en/3.2/ref/request-response/#django.http.HttpRequest.resolver_match [1]: https://pypi.org/project/ddtrace/ [2]: https://github.com/DataDog/dd-trace-py/blob/bf9587d2f4afa1485e9dd5232b23f91b941b206f/ddtrace/contrib/django/utils.py#L182-L201
- Loading branch information