Add minutely probes and other improvements
Add minutely probes
Add a minutely probes system. This can be used, alongside our metric helpers, to report metrics to AppSignal once per minute.
from appsignal import probes, set_gauge def new_carts(previous_carts=None): current_carts = Cart.objects.all().count() if previous_carts is not None: set_gauge("new_carts", current_carts - previous_carts) return current_carts probes.register("new_carts", new_carts)
The minutely probes system starts by default, but no probes are automatically registered. You can use the enable_minutely_probes
configuration option to disable it.
Add CPU count configuration option
Implement CPU count configuration option. Use it to override the auto-detected, cgroups-provided number of CPUs that is used to calculate CPU usage percentages.
To set it, use the the cpu_count
configuration option or the APPSIGNAL_CPU_COUNT
environment variable.
Fix ASGI events showing up as slow API requests
Fix ASGI events, from Python ASGI applications that have been instrumented with AppSignal, mistakenly showing up in the "Slow API requests" panel.