Use request path as transaction name


(Cristian Medeiros) #1

Hello ALL,

I'm evaluation Elastic APM for django projects, and noticed that it groups all transactions by view, there's any way to group by request path? As it groups /user and /user/IDUSER in the same transaction.

Thanks,


(Benjamin Wohlwend @ APM) #2

Hi @cmedeiros

the main reason that we group by view name is that, until the upcoming Django 2.2, the route or the request wasn't accessible to us. Luckily, with Django 2.2, the route has been added to request.resolver_match, which we can now optionally use.

I just created a pull request to add this functionallity, it'll be included in the next release of the agent. Django 2.2 itself is currently in alpha status, as far as I remember the release is planned for April.


(Cristian Medeiros) #3

Hi!

Thank you!