You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> I see that we have `/status` and `/metrics`. I'm not sure why we have both since, from what I can see, `/status` is a superset of `/metrics. Considering this, I can make it so that peers are returned on one of those endpoints instead of adding a new point. I implemented this functionality on a separate endpoint because:
1. there can be lots of peers returned and we may want to batch this response
2. we don't want the client to pay the price of retrieving this long list of peers if they are interested in simple metric
Well, in fact, the /status endpoint already supports selective retrieval (see sub-routing in the reference), i.e. GET /status/peers "just works" already. I would say introducing a new route is not as nice as reusing the current one.
Well, in fact, the
/status
endpoint already supports selective retrieval (see sub-routing in the reference), i.e.GET /status/peers
"just works" already. I would say introducing a new route is not as nice as reusing the current one.What do you think?
Originally posted by @0x009922 in #5235 (comment)
The text was updated successfully, but these errors were encountered: