diff --git a/README.md b/README.md index 9083606f..d4b02e86 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ environment's sink. A full example can be found in the [`examples`](examples) di ```java // create an environment singleton, this should be re-used across loggers +// DO NOT USE in a lambda environment, use new LambdaEnvironment() instead DefaultEnvironment environment = new DefaultEnvironment(EnvironmentConfigurationProvider.getConfig()); MetricsLogger logger = new MetricsLogger(environment);