Skip to content

Public API for getting metrics that have been set #38

@springmeyer

Description

@springmeyer

I have a usecase where I want to get access to one or all the metrics that have been set with putMetric before sending a response back to the user. Specifically I'm planning on putting some of the metric values into server timing headers so that I can tie clientside behavior back to serverside metrics.

I'm found that while there is not a public getMetric method I can get access to previously set metrics by inspecting the data here

My question is whether this is an okay, somewhat stable method to use? Or if this is exclusively private/internal data that I should not be touching? If the latter, is there interest in adding formal getMetric or getProperty methods?

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