Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment functions for success and failure #39

Open
adimitrani4 opened this issue Jul 4, 2022 · 1 comment
Open

Increment functions for success and failure #39

adimitrani4 opened this issue Jul 4, 2022 · 1 comment
Assignees

Comments

@adimitrani4
Copy link
Contributor

Today we use the function increment when we want to report success or a failure by sending a metric like 'myMetric.success' or 'myMetric.fail' / 'myMetric.failed' / 'myMetric.error'

If we will have a function in this repo that will send the success or failure it would help in making a metrics convention and avoid typos.

@adimitrani4 adimitrani4 self-assigned this Jul 4, 2022
@gioragutt
Copy link
Contributor

gioragutt commented Jul 12, 2022

https://github.com/Soluto-Private/asurion-parents-mobile-app/blob/master/mobile/src/utils/monitor.ts#L28

A utility I had in AP, take a look, it solves this case exactly.

See tests for examples

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

No branches or pull requests

2 participants