Skip to content

Commit 2185f47

Browse files
committed
revert slots
1 parent d865e0d commit 2185f47

File tree

1 file changed

+3
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,12 @@ def response_hook(
146146
_excluded_urls_from_env = get_excluded_urls("URLLIB3")
147147

148148

149-
@dataclass(slots=True)
149+
@dataclass
150150
class RequestInfo:
151151
"""Arguments that were passed to the ``urlopen()`` call."""
152152

153+
__slots__ = ("method", "url", "headers", "body")
154+
153155
# The type annotations here come from ``HTTPConnectionPool.urlopen()``.
154156
method: str
155157
url: str

0 commit comments

Comments
 (0)