From 966038a8d2d81c5d2283e130813c1cfe2ce00fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Jourdan-Weil?= Date: Sun, 10 Dec 2023 17:38:39 +0100 Subject: [PATCH] build(jdbc-client): do not shade opentelemetry-extension-incubator (#19958) Otherwise, OTEL's HttpMetricsAdvice class checks doesn't work and this result in many harmful labels to be exposed in OkHttp metrics like the http_response_content_length and http_url. Fixes: #19958 --- client/trino-jdbc/pom.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/trino-jdbc/pom.xml b/client/trino-jdbc/pom.xml index b3115a4b63c8a..3334e15e80824 100644 --- a/client/trino-jdbc/pom.xml +++ b/client/trino-jdbc/pom.xml @@ -89,6 +89,12 @@ provided + + io.opentelemetry + opentelemetry-extension-incubator + provided + + com.google.inject guice @@ -421,10 +427,6 @@ okhttp3 ${shadeBase}.okhttp3 - - io.opentelemetry.extension - ${shadeBase}.opentelemetry.extension - io.opentelemetry.instrumentation ${shadeBase}.opentelemetry.instrumentation