Allow overriding environment and provide LocalEnvironment by jaredcnance · Pull Request #19 · awslabs/aws-embedded-metrics-node (original) (raw)
Closes #18
Description of changes:
- adds LocalEnvironment
- renames LambdaSink to ConsoleSink
- short-circuits environment discovery if override is specified
- adds environment override
- fixes environment detection so that it only runs once after module load
TODO:
Refactor environment mapping out of the detectordeferred to Refactor environment mapping out of the detector #22- Add tests for detection
- Add documentation
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.