From aa2a41815df072e62f724e74c62498315dc3d2c3 Mon Sep 17 00:00:00 2001 From: Marek Kopecky Date: Wed, 4 Dec 2024 15:24:56 +0100 Subject: [PATCH] Add root cause exception to final exception in case of docker otel error --- .../containers/OpenTelemetryCollectorContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling-observability/src/main/java/org/jboss/eap/qe/observability/containers/OpenTelemetryCollectorContainer.java b/tooling-observability/src/main/java/org/jboss/eap/qe/observability/containers/OpenTelemetryCollectorContainer.java index fbc67d04..12248fb5 100644 --- a/tooling-observability/src/main/java/org/jboss/eap/qe/observability/containers/OpenTelemetryCollectorContainer.java +++ b/tooling-observability/src/main/java/org/jboss/eap/qe/observability/containers/OpenTelemetryCollectorContainer.java @@ -172,7 +172,7 @@ public void start() { try { otelCollectorContainer.start(); } catch (Exception e) { - throw new IllegalStateException("Starting the OTel container failed: " + e); + throw new IllegalStateException("Starting the OTel container failed: " + e, e); } otlpGrpcEndpoint = "http://localhost:" + DOCKER_HOST_OTLP_GRPC_PORT; otlpHttpEndpoint = "http://localhost:" + DOCKER_HOST_OTLP_HTTP_PORT;