def add(self, key: str, value: Optional[Metric]) -> None:
    '\n        Record an accumulation to a metric.\n        '
    if (self._threadsafe and self._worker):
        self._buffer[key] = (self._buffer.get(key) + value)
    else:
        self._data[key] = (self._data.get(key) + value)
Record an accumulation to a metric.
def add(self, key: str, value: Optional[Metric]) -> None:
    '\n        \n        '
    if (self._threadsafe and self._worker):
        self._buffer[key] = (self._buffer.get(key) + value)
    else:
        self._data[key] = (self._data.get(key) + value)