# Use request path as transaction name

**URL:** <https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415>\
**Category:** APM\
**Created:** [January 30, 2019, 6:41pm UTC](https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415 "2019-01-30T18:41:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmedeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmedeiros/32/40388_2.png) [@cmedeiros](https://discuss.elastic.co/u/cmedeiros)\
**Post date:** [January 30, 2019, 6:41pm UTC](https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415/1 "2019-01-30T18:41:04Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [February 1, 2019, 1:17pm UTC](https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415/2 "2019-02-01T13:17:38Z")

</div>

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](https://github.com/elastic/apm-agent-python/pull/396) 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.

---

<div class="post-metadata">

**Author:** ![cmedeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmedeiros/32/40388_2.png) [@cmedeiros](https://discuss.elastic.co/u/cmedeiros)\
**Post date:** [February 6, 2019, 3:58pm UTC](https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415/3 "2019-02-06T15:58:32Z")

</div>

Hi!

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 27, 2019, 11:58am UTC](https://discuss.elastic.co/t/use-request-path-as-transaction-name/166415/4 "2019-02-27T11:58:42Z")

</div>

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