# Threadname capture from the metadata of the request

**URL:** <https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333>\
**Category:** Open Q&A\
**Tags:** request-attributes\
**Created:** [November 17, 2022, 9:51am UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333 "2022-11-17T09:51:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henridb](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@henridb](https://community.dynatrace.com/u/henridb)\
**Post date:** [November 17, 2022, 9:51am UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333/1 "2022-11-17T09:51:29Z")

</div>

Hello Community,

is there a way to use the **threadname** of a request in any way?

Regards,

Henri

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 10, 2023, 9:12pm UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333/2 "2023-01-10T21:12:18Z")

</div>

im not sure if we can grab the threadname, could you share an image with what you are looking to target as a request attribute?

---

<div class="post-metadata">

**Author:** ![henridb](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@henridb](https://community.dynatrace.com/u/henridb)\
**Post date:** [January 12, 2023, 2:54pm UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333/3 "2023-01-12T14:54:08Z")

</div>

Hello Chad,

 ![henridb_0-1673535193164.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/f/4fdf5407c9ae9ac7991cbbe82a7e4fafe97822f8.png)

The last one is interesting for us 😉

---

<div class="post-metadata">

**Author:** ![db77](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@db77](https://community.dynatrace.com/u/db77)\
**Post date:** [February 13, 2023, 4:50am UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333/4 "2023-02-13T04:50:00Z")

</div>

Hi Chad,

I have the same query too. I would like to capture the Thread Name for filtering purpose. Attached is the screenshot from the detail trace. Is there a way to do it?

Thanks.

 ![Screenshot 2023-02-13 at 12.43.39 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/04c23cfc22484786a6331051ed9b4ce9dfd9aafd.png)

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [February 13, 2023, 8:42am UTC](https://community.dynatrace.com/t/threadname-capture-from-the-metadata-of-the-request/37333/5 "2023-02-13T08:42:07Z")

</div>

You need to ask Developers or do your own analysis (reverse engineering with Custom Service wizard) - **Is there method argument or return value - to add request attribute on it.** I belive that there are many points where we can get thread-name 😉

I see that it is Custom Service.

You can use [OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK-for-Java#add-custom-request-attributes) and got not only thread name.

```auto
oneAgentSDK.addCustomRequestAttribute("mde_CODEC_thread", value);

```

Regards,

Romanenkov Alex
