Transactions from rest_framework.routers seem to be missing
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.3.1
Steps to Reproduce
from discord
from rest_framework import routers
...
router.register(r"current-user", user_views.CurrentUserViewSet, basename="current-user")
urlpatterns = [
path("admin/", admin.site.urls),
path("", include(router.urls)), # THIS ENDPOINTS DOESNT WORK FOR PROFILING
path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
path("accounts/", include("app.user.urls")), # THIS ENDPOINT WORK FOR PROFILING
]
Expected Result
transactions and profiles are visible
Actual Result
they're not visible (or probably grouped under a different generic route if transaction name resolving is not working)
Any update on this?
Not yet @quememo, sorry!
Hey @quememo (and whoever else has the same issue), I've tried to reproduce this and failed.
Here's my root urls.py, I've just followed the tutorial at https://www.django-rest-framework.org/tutorial/quickstart/#urls to set things up and tried accessing /users.
from django.contrib import admin
from django.urls import include, path
from rest_framework import routers
from quickstart import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path("", include(router.urls)), # this shouldn't work but it does
]
Here's the profile:
The transactions are also correctly grouped under /users. There are some generic WSGI request transactions as well, but they're just for fetching static assets.
It'd help greatly if someone could come up with a small complete example including sentry_sdk.init -- I can't repro this from the original example.
Closing since we cannot reproduce per @sentrivana's comment above. If anyone encounters this issue and would like to provide a reproduction, please reopen this issue or open a new issue referencing this one. Thanks!