← Changelog

Add distribution value custom metric helper

Mar 11, 2024
Python1.1.1

Add distribution value custom metric helper. This can be used to add values to distributions in the same way as in our other integrations:

Python
# Import the AppSignal metric helper
from appsignal import add_distribution_value
 
# The first argument is a string, the second argument a number (int/float)
# add_distribution_value(metric_name, value)
add_distribution_value("memory_usage", 100)
add_distribution_value("memory_usage", 110)
 
# Will create a metric "memory_usage" with the mean field value 105
# Will create a metric "memory_usage" with the count field value 2

See the Python package 1.1.1 changelog for more information.

$appsignal install

Make your next crash make sense.

Free for 30 days. No credit card. Two-minute install.