Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 1d3b5f8

Browse files
blampeabhinav
authored andcommitted
reduce default sample rate
1 parent da3d891 commit 1d3b5f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changes by Version
1010
advertisement.
1111
- Handshake timeouts were incorrectly being surfaced as StreamClosedError but
1212
are now raised as NetworkError.
13+
- Reduced default tracing sample rate from 100% to 1%.
1314

1415

1516
0.21.9 (2016-03-14)

tchannel/zipkin/zipkin_trace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class ZipkinTraceHook(EventHook):
3030
"""generate zipkin-style span for tracing"""
3131

32-
DEFAULT_RATE = 1.0
32+
DEFAULT_RATE = 0.01
3333

3434
def __init__(self, tchannel=None, dst=None, sample_rate=None):
3535
"""Log zipkin style trace.

0 commit comments

Comments
 (0)