When using pythons sentry_sdk with Django and DjangoCMS using the default configuration for the DjangoIntegration I get a transactions {slug},w/]+)/.
This comes from the complex regex '^(?P<slug>[$\\-_.+!*(),\\w//]+)/$' which comes from DjangoCMS urls.pyconstants.py.
I expect even a complex regex like the above to get cleaned to just /{slug}/
Problem Statement
When using pythons
sentry_sdk
with Django and DjangoCMS using the default configuration for theDjangoIntegration
I get a transactions{slug},w/]+)/
.This comes from the complex regex
'^(?P<slug>[$\\-_.+!*(),\\w//]+)/$'
which comes from DjangoCMS urls.py constants.py.I expect even a complex regex like the above to get cleaned to just
/{slug}/
Solution Brainstorm
Improve the regex filter in https://github.com/getsentry/sentry-python/blob/9857bc97ff5f8c34cbc667f7bfde35323f0531a9/sentry_sdk/integrations/django/transactions.py#L48
Maybe even add a spezial case for this complex regex from DjangoCMS.