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
{{ message }}
Repository navigation
django integration: fitering transactions by url #1568
I'm trying to reduce the noise in our transactions, by filtering out frequently reached but not interesting urls ( /health in my particular case)
Solution Brainstorm
I tried to use the trace_sampler function, but at the time it is called, the transaction has the generic name generic WSGI request , and the name is only overwritten later to contain the url.
I did not see any opportunity to drop the transaction after the first decision is made.
Am I right that there is currently no way to do such a filtering ?
Thanks!
hi @etienne-lebrun, for WSGI we include the wsgi_environ object inside sampling_context, so you can access the underlying request fields. Something like the following should work.
Activity
sl0thentr0py commentedon Aug 16, 2022
hi @etienne-lebrun, for WSGI we include the
wsgi_environobject insidesampling_context, so you can access the underlying request fields. Something like the following should work.