-
Notifications
You must be signed in to change notification settings - Fork 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
Add support for engine_exchangeCapabilities #12224
Conversation
@@ -30,6 +30,20 @@ import ( | |||
"go.opencensus.io/trace" | |||
) | |||
|
|||
var ( |
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.
I guess we should also include ExchangeCapabilities
itself.
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.
In the spec it says "The engine_exchangeCapabilities method MUST NOT be returned in the response list.". So I removed it from the list of our own supported ones as well.
Would it be better to include it?
unsupported = append(unsupported, s1) | ||
} | ||
} | ||
if len(unsupported) != 0 { |
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.
A unit test checking the log would be nice
} | ||
} | ||
if len(unsupported) != 0 { | ||
log.Warnf("Please update, detected the following unsupported engine methods: %s", unsupported) |
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.
Please update
is too vague. Update what?
What type of PR is this?
Feature
What does this PR do? Why is it needed?
This PR adds engine_exchangecapabilities. Which is used to exchange a list of CL/EL supported engine methods.
Which issues(s) does this PR fix?
Fixes #11921
Other notes for review