Skip to content

Commit

Permalink
Need to truncate the metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Feb 10, 2017
1 parent 293ed74 commit 64d55f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c2cwsgiutils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


version = '0.3.1'
version = '0.3.2'

setup(
name='c2cwsgiutils',
Expand Down

0 comments on commit 64d55f2

Please sign in to comment.