Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

examples: python: sampling used only in counters

  • Loading branch information...
commit e0f32bffa2199780e8efd1137d586ecade6ba1d8 1 parent 3fb77ec
Alexey Ivanov SaveTheRbtz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/python_example.py
4 examples/python_example.py
View
@@ -16,7 +16,7 @@ def __init__(self, host='localhost', port=8125):
"""
self.addr = (host, port)
- def timing(self, stat, time, sample_rate=1):
+ def timing(self, stat, time):
"""
Log timing information
@@ -25,7 +25,7 @@ def timing(self, stat, time, sample_rate=1):
"""
stats = {}
stats[stat] = "{0}|ms".format(time)
- self.sample_send(stats, sample_rate)
+ self.send(stats, self.addr)
def increment(self, stats, sample_rate=1):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.