-
Notifications
You must be signed in to change notification settings - Fork 2k
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 Tracing context in Key Vault keys package #4500
Conversation
eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml
Show resolved
Hide resolved
...ult-keys/src/samples/java/com/azure/security/keyvault/keys/KeyClientJavaDocCodeSnippets.java
Outdated
Show resolved
Hide resolved
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.
Looks good! I didn't review the JavaDoc yet, but the impl mostly looks good with only a few minor comments. Once that is fixed up we can do a JavaDoc review and then merge.
eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml
Show resolved
Hide resolved
...vault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyAsyncClient.java
Show resolved
Hide resolved
...vault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyAsyncClient.java
Outdated
Show resolved
Hide resolved
...vault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyAsyncClient.java
Outdated
Show resolved
Hide resolved
...ult/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyClientBuilder.java
Show resolved
Hide resolved
[Following up on CI build that was improperly triggered] Please ignore the |
The one checkstyle error is the following:
|
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.
Do an update where you defer to the 'withResponse' call. This should be the pattern used everywhere.
sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/FluxUtil.java
Show resolved
Hide resolved
...vault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyAsyncClient.java
Outdated
Show resolved
Hide resolved
...vault/azure-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/KeyAsyncClient.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/FluxUtil.java
Show resolved
Hide resolved
|
||
Thread.sleep(2000); | ||
|
||
keyAsyncClient.createRsaKey(new RsaKeyCreateOptions("CloudRsaKey") | ||
keyAsyncClient.createRsaKeyWithResponse(new RsaKeyCreateOptions("CloudRsaKey") |
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.
We should probably show a detailed sample for withResponse, processing/printing the headers info.
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.
But that might lead to a lot of similar-looking samples 🤷♀
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.
We can just update the existing sample, and make it print the response headers info along with the returned key details.
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 think we should have samples which show the T response type methods as that is the more used one. I will update these examples in #4549 to use T response methods.
We should add one more test case for withResponse, parsing response headers and validating their values. But don't worry about it in this PR. as it will require recording it too. |
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.
We can add detailed test and samples for withResponse API in a follow up PR.
Looks good otherwise.
T
withResponse<T>
"overload in sync and async Key vault keys client.Closes: #4475