# Kafka Connect Datadog APM instrumentation

**URL:** <https://forum.confluent.io/t/kafka-connect-datadog-apm-instrumentation/37634>\
**Category:** Kafka Connect\
**Created:** [4 April 2025 14:37 UTC](https://forum.confluent.io/t/kafka-connect-datadog-apm-instrumentation/37634 "2025-04-04T14:37:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vspiliop](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/vspiliop/32/5043_2.png) [@vspiliop](https://forum.confluent.io/u/vspiliop)\
**Post date:** [4 April 2025 14:37 UTC](https://forum.confluent.io/t/kafka-connect-datadog-apm-instrumentation/37634/1 "2025-04-04T14:37:59Z")

</div>

Hi,

I have enabled APM Datadog instrumentation (via bytecode manipulation) and I observer the following:

- I see traces in Datadog related to the connect cluster itself (e.g. using the REST API to like connectors or listing the plugins)
- But I do not see S3 sink connector traces (aka events being consumed from the source topic and pushed to S3). E.g. I would expect to see the Kafka Consumer and the AWS SDK being instrumented as they are fully supported by the Datadog APM instrumentation ([Java Compatibility Requirements](https://docs.datadoghq.com/tracing/trace_collection/compatibility/java/?tab=graalvm#networking-framework-compatibility)).

I suspect the fact that connectors seem to be running on separate class loaders might be causing this behaviour.

Has anyone done this before?

From the docs ([Tracing Java Applications](https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/java/?utm_source=chatgpt.com&tab=wget#automatic-instrumentation)):

```auto
" Automatic instrumentation for Java uses the `java-agent` instrumentation capabilities [provided by the JVM](https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.html). When a `java-agent` is registered, it can modify class files at load time.

**Note:** Classes loaded with remote ClassLoader are not instrumented automatically."

```

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [4 May 2025 14:38 UTC](https://forum.confluent.io/t/kafka-connect-datadog-apm-instrumentation/37634/2 "2025-05-04T14:38:50Z")

</div>

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