# Thread ID request attribute definition

**URL:** <https://community.dynatrace.com/t/thread-id-request-attribute-definition/46804>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, request-attributes\
**Created:** [July 24, 2024, 8:38pm UTC](https://community.dynatrace.com/t/thread-id-request-attribute-definition/46804 "2024-07-24T20:38:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Osiris5654](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@Osiris5654](https://community.dynatrace.com/u/Osiris5654)\
**Post date:** [July 24, 2024, 8:38pm UTC](https://community.dynatrace.com/t/thread-id-request-attribute-definition/46804/1 "2024-07-24T20:38:07Z")

</div>

Hi,  
Can I define request attribute for thread message and thread ID?  
If I can, which source should I choose?  
Thank you.

 ![Screenshot 2024-07-24 233338.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/d/1da2fe828e9b98399f94bdf801f47f27ee54358a.png)

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [May 7, 2025, 11:07am UTC](https://community.dynatrace.com/t/thread-id-request-attribute-definition/46804/2 "2025-05-07T11:07:04Z")

</div>

Hello&nbsp;[@Osiris5654](https://community.dynatrace.com/user/58694),

While I didn’t find a proper solution to your question, I would suggest checking out this thread:  
&nbsp;[Threadname capture from the metadata of the request](https://community.dynatrace.com/topic/198553)

and especially Alex’s reply, as it could guide you to the answer:

> You need to ask Developers or do your own analysis (reverse engineering with Custom Service wizard) -&nbsp; **Is there method argument or return value - to add request attribute on it.** &nbsp; I belive that there are many points where we can get thread-name
> 
> I see that it is Custom Service.
> 
> You can use&nbsp;[OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK-for-Java#add-custom-request-attributes)&nbsp;and got not only thread name.
> 
> ```auto
> <span class="">oneAgentSDK</span>.<span class="">addCustomRequestAttribute</span>(<span class="">"mde_CODEC_thread"</span>, value);
> 
> ```
> 
> Regards,
> 
> Romanenkov Alex
