0.10.0
release-drafter
released this
08 Jun 11:32
·
3972 commits
to develop
since this release
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