I see two ways for fixing:
Add default value for 'counter_volume' field, 0 --- looks like the most suitable for None, if we are talking about metric
Or check for not None counter_volume on writing data into database to exclude None metrics from storage.
As for me second way looks better.
I see two ways for fixing:
Add default value for 'counter_volume' field, 0 --- looks like the most suitable for None, if we are talking about metric
Or check for not None counter_volume on writing data into database to exclude None metrics from storage.
As for me second way looks better.