Skip to content

Commit 4046049

Browse files
committed
feedback: pull out the client instrumentor
1 parent 1c44299 commit 4046049

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

  • instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx

instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx/__init__.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,12 +1792,13 @@ class AsyncOpenTelemetryTransport(
17921792

17931793
_module = _httpx_module
17941794

1795-
class HTTPXClientInstrumentor(_BaseHTTPXClientInstrumentor):
1796-
"""An instrumentor for httpx Client and AsyncClient."""
17971795

1798-
_module = _httpx_module
1799-
_module_name = "httpx"
1800-
_instrumentation_dependencies = _instruments_httpx
1796+
class HTTPXClientInstrumentor(_BaseHTTPXClientInstrumentor):
1797+
"""An instrumentor for httpx Client and AsyncClient."""
1798+
1799+
_module = _httpx_module
1800+
_module_name = "httpx"
1801+
_instrumentation_dependencies = _instruments_httpx
18011802

18021803

18031804
if _httpx2_module is not None:
@@ -1816,9 +1817,10 @@ class AsyncOpenTelemetryTransportHttpx2(
18161817

18171818
_module = _httpx2_module
18181819

1819-
class HTTPX2ClientInstrumentor(_BaseHTTPXClientInstrumentor):
1820-
"""An instrumentor for httpx2 Client and AsyncClient."""
18211820

1822-
_module = _httpx2_module
1823-
_module_name = "httpx2"
1824-
_instrumentation_dependencies = _instruments_httpx2
1821+
class HTTPX2ClientInstrumentor(_BaseHTTPXClientInstrumentor):
1822+
"""An instrumentor for httpx2 Client and AsyncClient."""
1823+
1824+
_module = _httpx2_module
1825+
_module_name = "httpx2"
1826+
_instrumentation_dependencies = _instruments_httpx2

0 commit comments

Comments
 (0)