From 5a841a7914d53438f09ca6a1de937a374f133180 Mon Sep 17 00:00:00 2001 From: Jordan Gibbings Date: Wed, 14 Aug 2024 12:11:34 +0800 Subject: [PATCH] code review suggestion - use __qualname__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> --- .../src/opentelemetry/instrumentation/tornado/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py b/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py index 35c3eab7eb..fa0e53bf95 100644 --- a/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py +++ b/instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py @@ -112,7 +112,7 @@ def _finish_tracing_callback( exc = future.exception() if exc: - description = f"{type(exc).__name__}: {exc}" + description = f"{type(exc).__qualname__}: {exc}" if isinstance(exc, HTTPError): response = exc.response status_code = exc.code