Use request path as transaction name

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,

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.

Hi!

Thank you!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.