# Setup monitoring for custom service with java SDK

**URL:** <https://community.dynatrace.com/t/setup-monitoring-for-custom-service-with-java-sdk/19956>\
**Category:** Open Q&A\
**Tags:** services-classic, java\
**Created:** [August 3, 2020, 2:12pm UTC](https://community.dynatrace.com/t/setup-monitoring-for-custom-service-with-java-sdk/19956 "2020-08-03T14:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wim\_desmecht1](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@wim\_desmecht1](https://community.dynatrace.com/u/wim_desmecht1)\
**Post date:** [August 3, 2020, 2:12pm UTC](https://community.dynatrace.com/t/setup-monitoring-for-custom-service-with-java-sdk/19956/1 "2020-08-03T14:12:15Z")

</div>

OneAgent SDK documentation ([GitHub - Dynatrace/OneAgent-SDK: Describes technical concepts of Dynatrace OneAgent SDK · GitHub](https://github.com/Dynatrace/OneAgent-SDK)) describes how to implement tracing for Custom Service methods.

The docs for het java implementation however ([GitHub - Dynatrace/OneAgent-SDK-for-Java: Enables custom tracing of Java applications in Dynatrace · GitHub](https://github.com/Dynatrace/OneAgent-SDK-for-Java)) have no section on this. Does this mean that it is not possible for java?

Thx.

Wim.

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [August 3, 2020, 3:11pm UTC](https://community.dynatrace.com/t/setup-monitoring-for-custom-service-with-java-sdk/19956/2 "2020-08-03T15:11:25Z")

</div>

This is likely because we already support definition of custom services for Java through Dynatrace with no requirement to modify the code. You just tell Dynatrace which methods should become custom services: [Define custom services — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/transactions-and-services/configuration/define-custom-services/)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 3, 2020, 3:55pm UTC](https://community.dynatrace.com/t/setup-monitoring-for-custom-service-with-java-sdk/19956/3 "2020-08-03T15:55:50Z")

</div>

See the matrix available [here](https://answers.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/198106/planned-features-for-oneagent-sdk.html). As [@James K.](https://answers.dynatrace.com/users/3513/view.html) correctly states, you can use the UI to get custom services. OneAgent SDK provides these features for languages where the online instrumentation cannot be achieved such as C/C++.
