Client Level Diagnostics for Spring SDK#35546
Conversation
This reverts commit 6bab94e.
|
API change check API changes are not detected in this pull request. |
…ande4884/azure-sdk-for-java-trande into trande_clientLevelDiagnostics
FabianMeiswinkel
left a comment
There was a problem hiding this comment.
Please see comments about public surface area (configs)
|
Would be nice to have a brief sample on how to enable logging with reaosnable defaults in readme.md - ultimately we want to enable everyone these logs, correct? Also makes it easier for support to point customers to a sample on how to enable them |
kushagraThapar
left a comment
There was a problem hiding this comment.
@trande4884 looks great, can we add more samples for this in the readme section?
Also, we have not added any tests yet. Can we add some tests to make sure this works end to end?
I can add samples, but for these attributes added on the configuration there is no real way to test them usually, I did manually test to make sure the values were being passed along. Is there some specific aspect I should be trying to test? |
Is there a way to test using DiagnosticsHandler? - checking if the APIs are getting called when thresholds are met? |
|
@kushagraThapar @FabianMeiswinkel more information added to readme as well as a test case. |
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Changing wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
Wording change. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Merging * Revert "Merging" This reverts commit ade7932. * Exposing diagnostic threshold's at the client level in Spring SDK. * Revert "Revert "Merging"" This reverts commit 6bab94e. * Updating changelog. * Removing unused import. * Adding defaults to application.properties * Fixing copy/paste error in code. * Fixing PR comments. * Fixing PR comments. * Fixing PR comments. * Adding test case. * Adding javaagent sample to readme. * Updating readme wording. * Removing unused imports. * Fixing bad merge resolution. * Update sdk/spring/azure-spring-data-cosmos/CHANGELOG.md Changing wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> * Update sdk/spring/azure-spring-data-cosmos/README.md Wording change. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> --------- Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
* Client Level Diagnostics for Spring SDK (#35546) * Merging * Revert "Merging" This reverts commit ade7932. * Exposing diagnostic threshold's at the client level in Spring SDK. * Revert "Revert "Merging"" This reverts commit 6bab94e. * Updating changelog. * Removing unused import. * Adding defaults to application.properties * Fixing copy/paste error in code. * Fixing PR comments. * Fixing PR comments. * Fixing PR comments. * Adding test case. * Adding javaagent sample to readme. * Updating readme wording. * Removing unused imports. * Fixing bad merge resolution. * Update sdk/spring/azure-spring-data-cosmos/CHANGELOG.md Changing wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> * Update sdk/spring/azure-spring-data-cosmos/README.md Wording change. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> --------- Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> * Update sdk/spring/azure-spring-data-cosmos/CHANGELOG.md Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com> * Update README.md Adding readme file changes. Co-Authored-By: Kushagra Thapar <kushuthapar@gmail.com> * Update README.md Adding changes to readme file --------- Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>

Description
Adding threshold support for diagnostics at the client level.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines