diff --git a/c2cwsgiutils/stats.py b/c2cwsgiutils/stats.py index 96c436fae..d3f606189 100644 --- a/c2cwsgiutils/stats.py +++ b/c2cwsgiutils/stats.py @@ -110,7 +110,7 @@ def __init__(self, address, prefix): self._socket.connect(sockaddr) def _key(self, key): - return self._prefix + ".".join([INVALID_KEY_CHARS.sub("_", i) for i in key]) + return (self._prefix + ".".join([INVALID_KEY_CHARS.sub("_", i) for i in key]))[:500] def timer(self, key, duration): the_key = self._key(key) diff --git a/setup.py b/setup.py index 16235a845..9f88d6b92 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -version = '0.3.1' +version = '0.3.2' setup( name='c2cwsgiutils',