Releases: aws-powertools/powertools-lambda-python
Releases · aws-powertools/powertools-lambda-python
0.11.0
Changes
Fix a bug with Metrics causing an exception to be thrown when logging metrics if dimensions were not explicitly added. No longer throw exception when no metrics are emitted while using the log_metrics decorator. Top level module imports now available for core utils, eg: from aws_lambda_powertools import Logger, Metrics, Tracer
.
This is the last planned release before this library becomes GA.
🌟 Minor Changes
- fix: metrics default dimension creation (#74) by @cakepietoast
- chore(deps): bump graphql-playground-html from 1.6.19 to 1.6.25 in /docs (#72) by @dependabot
- feat: improve error handling for log_metrics decorator (#71) by @cakepietoast
- feat: add high level imports (#70) by @heitorlessa
📜 Documentation updates
- docs: fix major WCAG contrast issues (#73) by @heitorlessa
This release was made possible by the following contributors:
@cakepietoast and @heitorlessa
0.10.1
0.10.0
Changes
This release primarily consists of changes to the Metrics
core utility. Most notably:
- The
Metrics
constructor now accepts aservice
parameter (alternatively thePOWERTOOLS_SERVICE_NAME
env var), as with the Tracer and Logger interfaces. This will create a default dimension named "service", with the value provided. Note that if you're already using the env var, this new dimension will start being recorded after upgrading to this version. - You can now specify the namespace by passing a
namespace
parameter to the Metrics constructor, or by supplying thePOWERTOOLS_METRICS_NAMESPACE
env var. This should be preferred to using theadd_namespace
method, which has been deprecated and will be removed in a future release. - To avoid repetition for the common task of recording metrics for Lambda cold starts, you can now achieve this by passing the
capture_cold_start_metric
parameter to thelog_metrics
decorator.
🌟New features and non-breaking changes
- feat: add capture_cold_start_metric for log_metrics (#67) by @heitorlessa
- improv: update metrics interface to resemble other core utils (#60) by @cakepietoast
- improv: Better namespace/dimension handling for Metrics (#62) by @cakepietoast
🌟 Minor Changes
- chore(deps): bump websocket-extensions from 0.1.3 to 0.1.4 in /docs (#66) by @dependabot
- chore: rename Makefile target docs-dev to docs-local (#65) by @cakepietoast
- feat: automate publishing to pypi (#58) by @heitorlessa
- feat: add pre-commit hooks (#64) by @heitorlessa
- improv: include example tests in
make tests
(#63) by @cakepietoast - feat: add codecov service (#59) by @heitorlessa
- feat: add security and complexity baseline #33 (#57) by @heitorlessa
- feat: add release drafter (#56) by @heitorlessa
- feat: add stale issues bot (#55) by @heitorlessa
- feat: enforce semantic PR titles (#54) by @heitorlessa
This release was made possible by the following contributors:
@cakepietoast, @danilohgds, @heitorlessa, @jfuss and @nmoutschen