Skip to content

Conversation

machavan
Copy link
Contributor

@machavan machavan commented Jul 15, 2025

Description:

This is a foundational change for introducing performance loggers which can be used tracking performance of various activities within the mssql-jdbc driver e.g. connection time, login time, token acquisition time etc.

A new java.util.Logging logger com.microsoft.sqlserver.jdbc.PerformanceMetrics.Connection is introduced here which can be subscribed to by applications.
More loggers such as com.microsoft.sqlserver.jdbc.PerformanceMetrics.Statement will be introduced in future.

Various performance activities to be tracked are defined in a PerformanceActivity Enum which will be amended with new additions in future.

Testing:
-Manual testing of new logger functionality.
-All existing tests ensure testing of newly added code.

Copy link

codecov bot commented Jul 15, 2025

Codecov Report

❌ Patch coverage is 77.08333% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.23%. Comparing base (6e9226f) to head (8f7ffef).
⚠️ Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
...a/com/microsoft/sqlserver/jdbc/PerformanceLog.java 73.68% 5 Missing and 5 partials ⚠️
.../microsoft/sqlserver/jdbc/PerformanceActivity.java 90.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2706      +/-   ##
============================================
+ Coverage     51.49%   52.23%   +0.73%     
- Complexity     4060     4139      +79     
============================================
  Files           149      151       +2     
  Lines         34136    34340     +204     
  Branches       5700     5727      +27     
============================================
+ Hits          17580    17937     +357     
+ Misses        14090    13898     -192     
- Partials       2466     2505      +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@machavan machavan added this to the 13.3.0 milestone Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants