# Is it possible to embed user-id for apm messages in Django?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-embed-user-id-for-apm-messages-in-django/212805>\
**Category:** APM\
**Tags:** python\
**Created:** [December 23, 2019, 5:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-embed-user-id-for-apm-messages-in-django/212805 "2019-12-23T05:13:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_App](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_app/32/59857_2.png) [@\_App](https://discuss.elastic.co/u/_App)\
**Post date:** [December 23, 2019, 5:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-embed-user-id-for-apm-messages-in-django/212805/1 "2019-12-23T05:13:46Z")

</div>

It would be valuable to include user\_id for apm logs.  
Would it be possible to include user-id for django integration?

---

<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:** [January 2, 2020, 9:08am UTC](https://discuss.elastic.co/t/is-it-possible-to-embed-user-id-for-apm-messages-in-django/212805/2 "2020-01-02T09:08:21Z")

</div>

Hi @_App

The user ID is already recorded in transactions and errors, you can find it in the `user.id` field in those documents, as well as in the UI in the "Metadata" tab for transactions and errors (it's pretty far down on the page).

---

<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:** [January 23, 2020, 5:08am UTC](https://discuss.elastic.co/t/is-it-possible-to-embed-user-id-for-apm-messages-in-django/212805/3 "2020-01-23T05:08:38Z")

</div>

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