File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
from .models .default_dynamic_naming import DefaultDynamicNaming
13
13
from .models .dummy_entities import DummySegment , DummySubsegment
14
14
from .emitters .udp_emitter import UDPEmitter
15
- from .sampling .sampler import DefaultSampler
16
- from .sampling .local .sampler import LocalSampler
17
15
from .streaming .default_streaming import DefaultStreaming
18
16
from .context import Context
19
17
from .daemon_config import DaemonConfig
@@ -58,10 +56,12 @@ def __init__(self):
58
56
context = check_in_lambda ()
59
57
if context :
60
58
# Special handling when running on AWS Lambda.
59
+ from .sampling .local .sampler import LocalSampler
61
60
self ._context = context
62
61
self .streaming_threshold = 0
63
62
self ._sampler = LocalSampler ()
64
63
else :
64
+ from .sampling .sampler import DefaultSampler
65
65
self ._context = Context ()
66
66
self ._sampler = DefaultSampler ()
67
67
You can’t perform that action at this time.
0 commit comments