File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 2121
2222
2323try :
24- import ujson as json
24+ import simplejson as json
2525except ImportError :
26- try :
27- import simplejson as json
28- except ImportError :
29- import json
26+ import json
3027
3128def iteritems (obj , ** kwargs ):
3229 func = getattr (obj , "iteritems" , None )
Original file line number Diff line number Diff line change 22
33Any `sampled = False` trace won't be written, and can be ignored by the instrumentation.
44"""
5-
65import logging
76import array
87import threading
98
10- from .span import MAX_TRACE_ID
11-
129log = logging .getLogger (__name__ )
1310
11+ MAX_TRACE_ID = 2 ** 64
1412
1513class AllSampler (object ):
1614 """Sampler sampling all the traces"""
Original file line number Diff line number Diff line change @@ -274,8 +274,6 @@ def __repr__(self):
274274 self .name ,
275275 )
276276
277- MAX_TRACE_ID = 2 ** 63
278277def _new_id ():
279- """Generate a random trace_id"""
280- return random .getrandbits (63 )
281-
278+ """Generate a random trace_id or span_id"""
279+ return random .getrandbits (64 )
You can’t perform that action at this time.
0 commit comments