-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
autorelay: add metrics #2185
autorelay: add metrics #2185
Conversation
@marten-seemann For RelayReservation Requests I'm not tracking the error reason currently. that would require |
3e3bccd
to
bb3a62c
Compare
a7ead08
to
ae1330e
Compare
f2d358e
to
5c8dce8
Compare
metrics added: relay finder status reservation request outcomes current reservations candidate circuit v2 support current candidates relay addresses updated num relay address scheduled work times
5c8dce8
to
4fce126
Compare
99249d0
to
bd3f1f6
Compare
} | ||
|
||
func (re ReservationError) Error() string { | ||
return fmt.Sprintf("reservation error: status: %s reason: %s err: %s", pbv2.Status_name[int32(re.Status)], re.Reason, re.err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not just use the String
method on the status?
return fmt.Sprintf("reservation error: status: %s reason: %s err: %s", pbv2.Status_name[int32(re.Status)], re.Reason, re.err) | |
return fmt.Sprintf("reservation error: status: %s reason: %s err: %s", re.Status, re.Reason, re.err) |
return "success" | ||
} | ||
|
||
status := "err other" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status := "err other" | |
status := "other" |
metrics added:
relay finder status
reservation request outcomes
current reservations
candidate circuit v2 support
current candidates
relay addresses updated
num relay address
scheduled work times
closes: #2181