From 64d55f24b58ee2d92ae822563a51bedf4aa97bdc Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Fri, 10 Feb 2017 11:08:52 +0100 Subject: [PATCH] Need to truncate the metric names --- c2cwsgiutils/stats.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',