You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Sentry Performance, when I look at the queries list in a performance event of an API view, the view.render event always begins with a few of the same queries, for looking up the auth token, and are rarely relevant. It would be better if those auth queries were in a separate span, to reduce visual noise.
Solution Brainstorm
I currently subclass the authentication class and add a span myself, like this:
The disadvantage of this is you can use multiple authentications, and each would need modifying. A better place for the span is probably rest_framework.request.Request._authenticate, which loops over all configured authentications.
The text was updated successfully, but these errors were encountered:
Problem Statement
In Sentry Performance, when I look at the queries list in a performance event of an API view, the
view.render
event always begins with a few of the same queries, for looking up the auth token, and are rarely relevant. It would be better if those auth queries were in a separate span, to reduce visual noise.Solution Brainstorm
I currently subclass the authentication class and add a span myself, like this:
The disadvantage of this is you can use multiple authentications, and each would need modifying. A better place for the span is probably
rest_framework.request.Request._authenticate
, which loops over all configured authentications.The text was updated successfully, but these errors were encountered: