Skip to content

ResetMetric#654

Open
sc-crescendo wants to merge 2 commits into
siimon:masterfrom
sc-crescendo:reset-one-metric
Open

ResetMetric#654
sc-crescendo wants to merge 2 commits into
siimon:masterfrom
sc-crescendo:reset-one-metric

Conversation

@sc-crescendo

Copy link
Copy Markdown

Added function reset metric which allows resetting single metric by name

Comment thread index.d.ts
resetMetrics(): void;

/**
* Reset one naed metric

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naed seems like a typo? perhaps:

Suggested change
* Reset one naed metric
* Reset a named metric
* @param metric Metric to reset

Comment thread lib/registry.js
}
}
resetMetric(name) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a redundant space

Suggested change

@mindw

mindw commented May 8, 2025

Copy link
Copy Markdown

It seems reasonable a test for this new functionality will be requested.

Not the/a maintainer.

@jdmarshall

Copy link
Copy Markdown
Contributor

Is this doing the same thing as looking up the metric and then resetting it directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants