public Tracer( IApmLogger logger, Service service, IPayloadSender payloadSender, IConfigurationReader configurationReader, ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer ) { _logger = logger?.Scoped(nameof(Tracer)); _service = service; _sender = payloadSender.ThrowIfArgumentNull(nameof(payloadSender)); _configurationReader = configurationReader.ThrowIfArgumentNull(nameof(configurationReader)); Sampler = new Sampler(configurationReader.TransactionSampleRate); CurrentExecutionSegmentsContainer = currentExecutionSegmentsContainer.ThrowIfArgumentNull(nameof(currentExecutionSegmentsContainer)); }