Open telemetry instrumentation dependencies. #11271
-
HI I am currently using open telemetry as a side car in my kubernetes cluster. Basically i have open telemetry collector running on a pod in k8s. I have another pod that has kafka connectors running for which i configured java opentelemetry agent (otel/opentelemetry-collector:0.38.0) . I enabled logging, metrics and traces such that the kafka conncetors send all the details to OTEL collector and that sends it to New relic . I have also enabled OTEL_INSTRUMENTATION_APACHE_HTTPCLIENT_ENABLED as our kafka connectors are using http client to talk to some downstreams. However, tracing and log for these connector are not working at all. My question is, do i need to add the opentelemetry-instrumentation-apache-client dependency as part of my KafkaConnectors?. I am assuming that the java agent should have all these dependencies added already and just enabling them would do. When i checked the libraries that are added to class path when the agent runs .. It has only 2 instrumentation dependencies which are /libs/opentelemetry-instrumentation-api-1.18.0.jar:/opt/kafka/bin/../libs/opentelemetry-instrumentation-api-semconv-1.18.0-alpha.jar. Request your help in understanding what needs to be done to get JVM metrics. Please be informed that i have also enabled few other libraries which are listed below. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please ignore. I added the open telemetry agent to my kafka connect script and it pumped all the required metrics, traces and logs. |
Beta Was this translation helpful? Give feedback.
Please ignore. I added the open telemetry agent to my kafka connect script and it pumped all the required metrics, traces and logs.