Skip to content

Add support for easily disabling metrics export #21616

Closed
@snicoll

Description

@snicoll

Most monitoring systems we have support for are push based and some of them will prevent the context to start if an API token (or account id) is not configured.

Each of them have a .enabled property that can be used to disable that check (and the export of metrics for it. It would be nice if we had a monitoring agnostic way of doing this, while still allowing the metrics to be asserted in memory.

@AutoConfigureMetrics comes to mind. I don't know if that would be similar to @AutoConfigureCache but something that makes sure metrics are only exported in memory would be quite convenient, I suspect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions