-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[core] Update OpenCensus #32553
[core] Update OpenCensus #32553
Conversation
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
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.
Didn't know they still release new versions... thought it was deprecated.
Btw, how old is current version, and is the new version the latest stable release?
Also, little concerned about that there are lots of changes from the patch file. Is the only relevant changes from the changes from the upstream code?
class PrometheusExporter final : public ::prometheus::Collectable { | ||
public: | ||
- std::vector<prometheus::MetricFamily> Collect() const override; | ||
+ std::vector<prometheus::MetricFamily> Collect() override; |
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.
just curious, but why is it changed?
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.
Because prometheus-cpp mark it as const in the new version and this one update the code to make it compile. Don't want to upgrade prometheus-cpp since the changes are too big and seems not a blocker for std-20
It's because code file changes invalidates the patch files. Basically, I just copy paste what's in the patch files and regenerate it. The old one is 2019 and the new one is 2022. I don't think it's released any more and I think they are living on the master. Not too many commits between these two actually. If the test looks good, the risk should be low. |
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.
LGTM. Finger crossed this doesn't cause random issues..
Can you make a PR against OpenCensus suggesting our patches and the reasoning why they can be beneficial to other users as well (if they can be)? This will reduce our maintainance overhead in the future. |
This PR updated OpenCensus. Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
This PR updated OpenCensus.
This PR updated OpenCensus. Signed-off-by: elliottower <elliot@elliottower.com>
Why are these changes needed?
This PR updated OpenCensus.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.