Skip to content

Feature request: Option to setLogger for metrics as it is done with tracer #3099

Closed as not planned
@jorgevrgs

Description

@jorgevrgs

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

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue is a duplicate of an existing onefeature-requestThis item refers to a feature request for an existing or new utilitymetricsThis item relates to the Metrics Utility

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions