Skip to content

Commit 99114ab

Browse files
author
Tom McCarthy
committed
chore: correct deprecation message
1 parent 0039338 commit 99114ab

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/metrics

1 file changed

+1
-1
lines changed

aws_lambda_powertools/metrics/base.py

Lines changed: 1 addition & 1 deletion
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(

0 commit comments

Comments
 (0)