Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HTTPX instrumentation #461

Merged
merged 23 commits into from
Jun 8, 2021
Merged

Add support for HTTPX instrumentation #461

merged 23 commits into from
Jun 8, 2021

Commits on Jun 1, 2021

  1. Add support for HTTPX instrumentation

    This builds off of the initial idea in [this issue][1] of using the
    transport API in `httpx`. This allows for using [custom transports][2].
    
    One issue with this current implementation is that there are few more
    [changes coming][3] in 0.18.0 that this will probably want to use. So
    maybe it will make sense to finalize this on that version before
    releasing it. Want to get some eyes on this sooner.
    
    Resolves #263
    
    [1]: encode/httpx#1264 (comment)
    [2]: https://www.python-httpx.org/advanced/#custom-transports
    [3]: encode/httpx#1522
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    539b46b View commit details
    Browse the repository at this point in the history
  2. Update changelog

    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    93c0f2f View commit details
    Browse the repository at this point in the history
  3. Update tests

    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    c00450e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ff314c1 View commit details
    Browse the repository at this point in the history
  5. Store tracer on instance

    This is to avoid calling `get_tracer` every time.
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    650bfb7 View commit details
    Browse the repository at this point in the history
  6. Use request and response hooks

    Replaces the span and name callbacks
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    8ff4cee View commit details
    Browse the repository at this point in the history
  7. Use httpx Request and Response classes

    Simplifies the usage of request/response hooks for consumers with
    expected objects
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    0eac3d0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d18be7 View commit details
    Browse the repository at this point in the history
  9. Update documentation

    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    603ad00 View commit details
    Browse the repository at this point in the history
  10. Wrap client send instead of __init__

    Allows for instrumenting and uninstrumenting existing client instances
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    3d83fb5 View commit details
    Browse the repository at this point in the history
  11. Fix lint issues

    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    3e51f1c View commit details
    Browse the repository at this point in the history
  12. Fix typo in httpcore intersphinx

    Not sure how that happened.
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    19fc979 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9a6caed View commit details
    Browse the repository at this point in the history
  14. Update versions

    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    f27dd97 View commit details
    Browse the repository at this point in the history
  15. Update request and response hooks

    Back to only providing the raw arguments and return values instead of
    using httpx Request and Response objects to avoid any additional
    overhead or unexpected side effects.
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    50843a4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5547d1f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9761617 View commit details
    Browse the repository at this point in the history
  18. Use namedtuple for request and response info

    Easier usage in hooks
    jomasti committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    940097c View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Configuration menu
    Copy the full SHA
    8427e31 View commit details
    Browse the repository at this point in the history
  2. Update versions

    jomasti committed Jun 2, 2021
    Configuration menu
    Copy the full SHA
    d23e247 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2021

  1. Configuration menu
    Copy the full SHA
    4ec1fc4 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Configuration menu
    Copy the full SHA
    dcf9ada View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Updates

    - Move changelog entry
    - Fix license copyright
    - Add Python 3.9 classifier
    jomasti committed Jun 8, 2021
    Configuration menu
    Copy the full SHA
    c8d0805 View commit details
    Browse the repository at this point in the history