ELSEIF
Your brief EB
406 stories from 182 feeds 1154 clusters Refreshed 24 minutes ago next pull 04:27

OBSERVABILITY Signal 371

Don't sleep on wrapture

Illustration only Photo by Igor Saikin on Unsplash

elseif has not written about this yet · Simon Willison describes it this way

Graham Dumpleton's new monkey patching package wrapture is shaping up to be an indispensable tool for Python developers. I'm not sure why I've seen so little buzz about it! Graham has been posting new tutorials for it almost daily since the initial release on August 31st. Here's everything he's published so far: Introducing wrapture - a new monkey patching library that serves both testing and observability (think New Relic style tracing) at the same time. Unit testing with wrapture - how to use it for the same kinds of thing as unittest.mock. Recording calls with wrapture - recording method calls as timelines and processing and displaying them as trees. Phased behaviour in wrapture - arranging patched methods to change behavior across multiple calls. Beyond callables in wrapture - monkey patching attributes, dictionaries, generators. Live tracing with wrapture - tracing a live application to see exactly how it works. Zero-code tracing with wrapture - configuring tracing in a separate TOML file without modifying Python code at all. Tracing Flask with wrapture - using the separate wrapture-instrumenation package to instrument a Flask application. That package also provides instrument
Simon Willison ↗

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
Simon Willison Don't sleep on wrapture Open ↗