Skip to content

6.0.0 / 2023-03-20

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Mar 20:07
· 31 commits to master since this release

Small release with a small breaking change leading to a big version change following semantic versioning.

Breaking change only affects users that have custom instrumentations that access info.response.body, a feature introduced with 5.10.0 few weeks ago. See below for more information.

Added

  • BREAKING: Disabled passing response body to instrumentation functions. Moved behind whitelist that is empty by default. Changes a feature introduced with 5.10.0. Only affects users that have custom instrumentations that access info.response.body.

    Opt-in via new parameter body_handlers added to instrumentator constructor. Parameter takes list of pattern strings to match handlers. For old behavior, pass argument [r".*"] to match all handlers:

    instrumentator = Instrumentator(body_handlers=[r".*"])

    Motivation for change: Collecting body negatively impacts performance of responses with largish body.

    Thanks to @bbeattie-phxlabs for raising this issue in #234 and implementing it in #233 / #238.