-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazy load requests in Transmission class (#121)
* When using alternate transmission implementations like FileTransmission there is no need to import requests, as this just adds additional initialization time. Initialization time is important especially when running in the context of a Lambda function where cold starts will always need to incur this additional load time. Currently beeline-python uses libhoney Client which imports Transmission and therefore always imports requests.
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters