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

Measure time spent on validating messages tagged by result #528

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

masih
Copy link
Member

@masih masih commented Jul 26, 2024

Measure the time spent on validating messages and tag the metric by validation result.

@masih masih requested a review from Stebalien July 26, 2024 21:12
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 77.41935% with 7 lines in your changes missing coverage. Please review.

Project coverage is 79.69%. Comparing base (fc03ec1) to head (b00f101).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #528      +/-   ##
==========================================
- Coverage   79.79%   79.69%   -0.11%     
==========================================
  Files          44       44              
  Lines        4084     4103      +19     
==========================================
+ Hits         3259     3270      +11     
- Misses        494      504      +10     
+ Partials      331      329       -2     
Files Coverage Δ
f3.go 71.86% <100.00%> (ø)
host.go 70.50% <78.57%> (-0.50%) ⬇️
metrics.go 68.42% <73.33%> (+18.42%) ⬆️

... and 3 files with indirect coverage changes

host.go Outdated Show resolved Hide resolved
host.go Outdated Show resolved Hide resolved
@masih masih force-pushed the masih/validation-time-metric branch from 496d416 to d6b21b9 Compare July 30, 2024 10:36
@masih masih requested a review from Stebalien July 30, 2024 11:43
metrics.go Outdated Show resolved Hide resolved
Measure the time spent on validating messages and tag the metric by
validation result.
@masih masih force-pushed the masih/validation-time-metric branch from 5da1130 to b00f101 Compare July 30, 2024 14:31
validationTime: must(meter.Int64Histogram("f3_validation_time_ms",
metric.WithDescription("Histogram of time spent validating broadcasted in milliseconds"),
metric.WithExplicitBucketBoundaries(1.0, 2.0, 3.0, 5.0, 10.0, 20.0, 30.0, 40.0, 50.0, 100.0, 200.0, 300.0, 400.0, 500.0, 1000.0),
metric.WithUnit("ms"),
Copy link
Member Author

Choose a reason for hiding this comment

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

@Stebalien millisecond unit example.

@masih masih added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit d82606d Jul 30, 2024
13 checks passed
@masih masih deleted the masih/validation-time-metric branch July 30, 2024 15:20
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