You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PR #2909HTTPXClientInstrumentor.instrument_client was changed from a staticmethod to an instance method. This breaks existing usage, as described in the docs:
Yeah, we didn't have a single test that used it as a static method so I missed it 😓
If you look at the code I think it's easy to make it a staticmethod again because AFAICS it's using self only for calling another staticmethod of the same class.
Describe your environment
OS: Debian bookworm, docker
Python version: 3.11
Package version: 0.49
What happened?
In PR #2909
HTTPXClientInstrumentor.instrument_client
was changed from astaticmethod
to an instance method. This breaks existing usage, as described in the docs:Since this change, the code must use
Steps to Reproduce
Expected Result
Expected that the client is instrumented with no errors.
Actual Result
Additional context
This was called out as a breaking change in the changelog, but without a description of what to change.
I'll also note that
uninstrument_client
is still a staticmethod, so there might be some confusion now that these are not symmetric.Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: