Skip to content

Commit 54342f5

Browse files
author
Tom McCarthy
authored
chore: version bump (#68)
* chore: correct deprecation message * chore: version bump
1 parent 4d6dc34 commit 54342f5

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.10.0] - 2020-06-08
10+
### Added
11+
- **Metrics**: `capture_cold_start_metric` parameter added to `log_metrics` decorator
12+
- **Metrics**: Optional `namespace` and `service` parameters added to Metrics constructor to more closely resemble other core utils
13+
14+
### Changed
15+
- **Metrics**: Default dimension is now created based on `service` parameter or `POWERTOOLS_SERVICE_NAME` env var
16+
17+
### Deprecated
18+
- **Metrics**: `add_namespace` method deprecated in favor of using `namespace` parameter to Metrics constructor or `POWERTOOLS_METRICS_NAMESPACE` env var
19+
920
## [0.9.5] - 2020-06-02
1021
### Fixed
1122
- **Metrics**: Coerce non-string dimension values to string

Diff for: aws_lambda_powertools/metrics/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def add_namespace(self, name: str):
7272
Metric namespace
7373
"""
7474
warnings.warn(
75-
"add_namespace method is deprecated. Pass service to Metrics constructor instead", DeprecationWarning
75+
"add_namespace method is deprecated. Pass namespace to Metrics constructor instead", DeprecationWarning
7676
)
7777
if self.namespace is not None:
7878
raise UniqueNamespaceError(

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws_lambda_powertools"
3-
version = "0.9.5"
3+
version = "0.10.0"
44
description = "Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric"
55
authors = ["Amazon Web Services"]
66
classifiers=[

0 commit comments

Comments
 (0)