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

feat: usage metrics reporting #1862

Merged
merged 6 commits into from
Dec 5, 2023
Merged

feat: usage metrics reporting #1862

merged 6 commits into from
Dec 5, 2023

Conversation

Arqu
Copy link
Collaborator

@Arqu Arqu commented Dec 5, 2023

Description

Simple extension to the metrics collector to have a dedicated usage reporting flow.

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

@Arqu Arqu self-assigned this Dec 5, 2023
@Arqu Arqu requested a review from dignifiedquire December 5, 2023 10:42
@Arqu Arqu added feat New feature or request metrics extracting quantified mesurements from iroh c-iroh-metrics labels Dec 5, 2023
1,
None, // TODO(arqu): attribute to user id; possibly with the re-introduction of request tokens or other auth
Some(key.to_string()),
)).await.unwrap_or_else(|e| tracing::warn!("error reporting usage stats: {:?}", e));
Copy link
Contributor

Choose a reason for hiding this comment

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

For metrics-like APIs it might be better to make the functions infallible and handle the error reporting in the function itself. I assume this will end up being strewn around the code in many places?

@flub flub enabled auto-merge December 5, 2023 15:42
@flub flub added this pull request to the merge queue Dec 5, 2023
Merged via the queue into main with commit 7ec4d92 Dec 5, 2023
@Arqu Arqu deleted the arqu/derp_node_count branch December 5, 2023 16:25
matheus23 pushed a commit that referenced this pull request Nov 14, 2024
## Description

Simple extension to the metrics collector to have a dedicated usage
reporting flow.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.

---------

Co-authored-by: Floris Bruynooghe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-iroh-metrics feat New feature or request metrics extracting quantified mesurements from iroh
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants