Hello, we are trying to get a vert.x java service traced with the support of OpenTelemetry. The service runs in a K8s pod which is monitored already by Oneagent (dynakube).
The process should be very straight forward, just following these steps. Using oneagent ingestion.
add OTEL agent to the java startup
disable default exporters via env variables
However when the application is start up it always still tries to perform the export to localhost:
SEVERE: Failed to export metrics. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:431884java.net.ConnectException: Failed to connect to localhost/127.0.0.1:431883 at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)82
When we try to set the exporter URL manually to directly export to the SaaS instance it seems to work (a connection attempt is made). But we cannot use that setup due to firewall restrictions.
Now I have a few questions:
In the above log the export tries to connect to localhost/127.0.0.1:431883... What port ist that? That doesn't seem to be a valid port range? In that configuration (oneagent ingested) there shouldn't be any attempt to export traces anywhere, right? The oneagent within the process should pick up those traces, right?