-
Notifications
You must be signed in to change notification settings - Fork 162
Closed as not planned
Closed as not planned
Copy link
Labels
duplicateThis issue is a duplicate of an existing oneThis issue is a duplicate of an existing onefeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilitymetricsThis item relates to the Metrics UtilityThis item relates to the Metrics Utility
Description
Use case
Currently, tracer.provider.setLogger(logger)
allows the customization of the logger. However, in the Metrics class there is not an option to do the same.
Solution/User Experience
Instead of only using this.setConsole()
here as a private method, it is possible to update the MetricsOptions
and receive a logger there.
Alternative solutions
- Update `MetricsOptions` to receive a custom logger
- Expose `setConsole` method as public and receive a param `logger: Logger` of the same type of `tracer.provider.setLogger`.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
duplicateThis issue is a duplicate of an existing oneThis issue is a duplicate of an existing onefeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilitymetricsThis item relates to the Metrics UtilityThis item relates to the Metrics Utility
Type
Projects
Status
Closed