# How to trace TCP custom service callers

**URL:** <https://community.dynatrace.com/t/how-to-trace-tcp-custom-service-callers/50336>\
**Category:** Open Q&A\
**Tags:** distributed-tracing, services, oneagent\
**Created:** [February 19, 2025, 10:27am UTC](https://community.dynatrace.com/t/how-to-trace-tcp-custom-service-callers/50336 "2025-02-19T10:27:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [March 6, 2025, 10:48pm UTC](https://community.dynatrace.com/t/how-to-trace-tcp-custom-service-callers/50336/2 "2025-03-06T22:48:40Z")

</div>

I believe you would need to implement some custom instrumentation to ensure that trace details are added into the request from the client side, and then consumed on the server side. The OneAgent handles this out-of-the-box for common frameworks using protocols like HTTP, but since you have a custom protocol you’ll have to do this with the [OneAgent SDK](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-tracing/oneagent-sdk) on both sides as described [here](https://github.com/Dynatrace/OneAgent-SDK-for-Java?tab=readme-ov-file#trace-incoming-and-outgoing-remote-calls).

---

_[View the full topic](https://community.dynatrace.com/t/how-to-trace-tcp-custom-service-callers/50336)._
