Python Agent API
Capture span in Python APM
Measure how a specific transaction spends it’s time in your python app with capture span API in Atatus Python APM agent.
Atatus APM supports most of the standard libraries out of the box.
However you might need to know how long a specific function took. Using capture span, you can measure the timing of specific function or set of lines of code.
Option 2: Using context manager
When used as a context manager, a name has to be provided.