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

core: Migrate to new OpenCensus method & status tags #5996

Merged
merged 4 commits into from Aug 1, 2019

Conversation

igorbernstein2
Copy link
Contributor

@igorbernstein2 igorbernstein2 commented Jul 21, 2019

Fixes #5593 and supersedes #5601

Now that census-instrumentation/opencensus-java#1854 has been merged & released as 0.21.0. We can start using the method & status tags.

Background:
Opencensus introduced new tags for status and method (census-instrumentation/opencensus-java#1115). The old views that used those tags were deprecated and new views were created that used the new tags. However grpc-java wasn't updated to use the new tags due to concern of breaking existing metrics. This resulted in the old views being deprecated while the new views were broken (goomics #50).

census-instrumentation/opencensus-java#1854 added a compatibility layer to opencensus that would remap new tags to old tags for old views. This should unblock grpc to switching to the new tags while allowing old views to still be populated. That commit was released as part of opencensus 0.21, which grpc currently uses.

Fixes grpc#5593 and supersedes grpc#5601

Now that census-instrumentation/opencensus-java#1854 has been merged & released as 0.21.0. We can start using the method & status tags.

Background:
Opencensus introduced new tags for status and method (census-instrumentation/opencensus-java#1115). The old views that used those tags were deprecated and new views were created that used the new tags. However grpc-java wasn't updated to use the new tags due to concern of breaking existing metrics. This resulted in the old views being deprecated while the new views were broken (goomics grpc#50).

census-instrumentation/opencensus-java#1854 added a compatibility layer to opencensus that would remap new tags to old tags for old views. This should unblock grpc to switching to the new tags while allowing old views to still be populated. That commit was released as part of opencensus 0.21, which grpc currently uses
@igorbernstein2
Copy link
Contributor Author

CC @songy23, @sebright, @dapengzhang0

Copy link
Contributor

@zhangkun83 zhangkun83 left a comment

Choose a reason for hiding this comment

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

LGTM except for a minor comment.
@songy23, can you confirm it's safe to switch to the new tags for both OSS and internal usages?

@songy23
Copy link
Contributor

songy23 commented Jul 22, 2019

@songy23, can you confirm it's safe to switch to the new tags for both OSS and internal usages?

Yes it should be safe to do the switch. The new tags will be mapped properly to keep backwards-compatibility.

@igorbernstein2
Copy link
Contributor Author

Thanks for the review, all feedback should be addressed. I'll be OOO for the rest of the week, so if anything else needs to change feel free to update the PR as needed

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

Some minor nits, otherwise LGTM. Thanks for making this change!

core/build.gradle Show resolved Hide resolved
@igorbernstein2
Copy link
Contributor Author

I think this is ready to be merged

@songy23
Copy link
Contributor

songy23 commented Aug 1, 2019

@zhangkun83 Can you add the label to trigger Kokoro?

@dapengzhang0 dapengzhang0 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Aug 1, 2019
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Aug 1, 2019
@zhangkun83 zhangkun83 merged commit 271cbff into grpc:master Aug 1, 2019
@igorbernstein2 igorbernstein2 deleted the oc-tags branch August 1, 2019 17:38
@igorbernstein2
Copy link
Contributor Author

Thank you

@lock lock bot locked as resolved and limited conversation to collaborators Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenCensus grpc method is not set
5 participants