-
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
Enable resource manager metrics by default #2372
Comments
Sounds good to me, let's do it! |
The current implementation of TraceReporter is in a separate package So from within rcmgr there is no way to initialise a new There are two options here:
I lean towards 1 since users using |
Can you do 1 without a breaking change? I.e both ways work |
@MarcoPolo I think I can. Can you check #2388 and #2389 ? I've moved the type
kubo works fine with this. I think this should be fine. |
Why? This is only used by Kubo and Lotus (and maybe a very small number of consumers). I'd rather do the right thing, instead of creating additional API surface for the sake of backwards compatibility. |
I'd argue that the right thing is avoiding unnecessary breakages for users. They've already jumped through the hoops of setting this up once, let's not force a harder upgrade for them. |
Building in backwards compatibility comes with a long-term maintenance cost for us. Since we're creating the PRs for Kubo and Lotus anyway, there's no cost for them to pay in the first place. If we want to avoid breaking users, we should at least deprecate the option that we don't want people to use any more. |
#2388 deprecated the obs package, so this should be fine. |
Fixed by #2389. |
We have found these metrics very useful and the cost of reporting metrics is not a lot. Users can opt out if they want to. In line with the rest of the places in libp2p we should enable these metrics by default too.
The text was updated successfully, but these errors were encountered: