示例#1
0
 def __init__(self, hostname='localhost', port=8126, filters=None):
     self._pid = None
     self._traces = None
     self._services = None
     self._worker = None
     self._filters = filters
     self.api = api.API(hostname, port)
示例#2
0
 def __init__(self, hostname='localhost', port=8126, filters=None, priority_sampler=None):
     self._pid = None
     self._traces = None
     self._worker = None
     self._filters = filters
     self._priority_sampler = priority_sampler
     priority_sampling = priority_sampler is not None
     self.api = api.API(hostname, port, priority_sampling=priority_sampling)
示例#3
0
 def __init__(self, hostname='localhost', port=7777):
     self._pid = None
     self._traces = None
     self._services = None
     self._worker = None
     self.api = api.API(hostname, port)