Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Add metrics instrumentation for deprecated fields #439

Open
@ketiko

Description

@ketiko

Is your feature request related to a problem? Please describe.
I would like to see if deprecated fields are being called in my API.

Describe the solution you'd like
I'd like to be able to use the existing metrics feature and log the number of times a deprecated field was called. This would allow me to graph it in Grafana and setup alerts before removing a field. I'd like it tagged by the operation/parent/field just like the other metrics. However this would just be a counter of fields with deprecation annotations.

Describe alternatives you've considered
I can always do this myself building a custom Instrumentation but thought it might be useful in the standard library.

I have a working example of this enhancing the existing MetricsInstrumentation class. But before I polished it up I wanted to see if it's something you'd like to add.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions