File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212from .models .default_dynamic_naming import DefaultDynamicNaming
1313from .models .dummy_entities import DummySegment , DummySubsegment
1414from .emitters .udp_emitter import UDPEmitter
15- from .sampling .sampler import DefaultSampler
16- from .sampling .local .sampler import LocalSampler
1715from .streaming .default_streaming import DefaultStreaming
1816from .context import Context
1917from .daemon_config import DaemonConfig
@@ -58,10 +56,12 @@ def __init__(self):
5856 context = check_in_lambda ()
5957 if context :
6058 # Special handling when running on AWS Lambda.
59+ from .sampling .local .sampler import LocalSampler
6160 self ._context = context
6261 self .streaming_threshold = 0
6362 self ._sampler = LocalSampler ()
6463 else :
64+ from .sampling .sampler import DefaultSampler
6565 self ._context = Context ()
6666 self ._sampler = DefaultSampler ()
6767
You can’t perform that action at this time.
0 commit comments