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

Update metrics use of malfeasance package #6569

Open
wants to merge 9 commits into
base: malfeasance-info-v2
Choose a base branch
from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Dec 23, 2024

Motivation

Merge after #6566. This updates the way we handle metrics with malfeasance.

Description

Instead of passing along the metrics counter the domain specific handlers just return the labels that the malfeasance handler should use to report metrics.

Test Plan

existing tests were updated and extended

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@fasmat fasmat force-pushed the malfeasance-metrics-v2 branch from 403680c to 1f126b1 Compare December 23, 2024 14:27
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 64.15094% with 19 lines in your changes missing coverage. Please review.

Project coverage is 79.8%. Comparing base (bf8abb4) to head (de286ca).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
activation/malfeasance.go 0.0% 6 Missing ⚠️
activation/malfeasance2.go 0.0% 6 Missing ⚠️
hare3/malfeasance.go 0.0% 2 Missing ⚠️
hare4/malfeasance.go 0.0% 2 Missing ⚠️
mesh/malfeasance.go 0.0% 2 Missing ⚠️
malfeasance/handler.go 97.0% 1 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           malfeasance-info-v2   #6569   +/-   ##
===================================================
  Coverage                 79.8%   79.8%           
===================================================
  Files                      356     356           
  Lines                    47346   47366   +20     
===================================================
+ Hits                     37799   37838   +39     
+ Misses                    7400    7384   -16     
+ Partials                  2147    2144    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

activation/malfeasance2.go Outdated Show resolved Hide resolved
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.

2 participants