Commit 884b113
Supporting Event counter in .Net core (#719)
* Add event counters
* Add support netstandard 2.1 & fix the conflict in event source
* Support new event source types & add the test unit
* Remove supporting obsolete types
* fix unit test
* Add snippet sample code
* Address comments
* Fix minor typo (#3)
* Reformatting counter methods
* Fix minor typo
* Removed IsEnabled condition and reformatted counter methods
* Unit tests for Microsoft.Data.SqlClient.SqlClientEventSource (#2)
* Implemented tests for Microsoft.Data.SqlClient.SqlClientEventSource
* Updated the EventCounter test to reflect the recent changes in the code
* Working on EventCounter tests access event counters through reflection
* Updated the EventCounterTest to use reflection
* Fixing dangling SqlConnection's left in tests
* EventCountersTest now checks hard/soft connects/disconnects counters
* Reverted the DataTestUtility changes
* Reverted using statements to the old-style in tests
* Reverted the ConnectionPoolTest.ReclaimEmancipatedOnOpenTest()
* Reverted using statements to the old-style in tests
* Reverted using statements to the old-style in tests
* Rewrite the EventCounterTest assertions not to conflict with other tests
* Code review cleanup
* Add more tests (#5)
Added EventCounter_ReclaimedConnectionsCounter_Functional & EventCounter_ConnectionPoolGroupsCounter_Functional tests.
* Address comments
Co-authored-by: Davoud Eshtehari <David.esh@gmail.com>
Co-authored-by: Davoud Eshtehari <v-daesht@microsoft.com>
Co-authored-by: Karina Zhou <v-jizho2@microsoft.com>
Co-authored-by: Nikita Kobzev <win.accuracy@gmail.com>1 parent 0005645 commit 884b113
File tree
20 files changed
+1097
-137
lines changed- doc/samples
- src/Microsoft.Data.SqlClient
- netcore/src
- Common/src/Microsoft/Data/ProviderBase
- Microsoft/Data
- ProviderBase
- SqlClient
- src/Microsoft/Data/SqlClient
- tests/ManualTests
- DDBasics/DDAsyncTest
- DataCommon
- SQL
- AdapterTest
- ConnectionPoolTest
- ParameterTest
- RandomStressTest
- TransactionTest
- TracingTests
20 files changed
+1097
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| 286 | + | |
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
| |||
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
307 | | - | |
| 310 | + | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| |||
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
| |||
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
| 355 | + | |
351 | 356 | | |
352 | 357 | | |
353 | 358 | | |
| |||
372 | 377 | | |
373 | 378 | | |
374 | 379 | | |
375 | | - | |
| 380 | + | |
| 381 | + | |
376 | 382 | | |
377 | 383 | | |
378 | 384 | | |
| |||
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
| 414 | + | |
| 415 | + | |
408 | 416 | | |
409 | 417 | | |
410 | 418 | | |
| |||
416 | 424 | | |
417 | 425 | | |
418 | 426 | | |
| 427 | + | |
| 428 | + | |
419 | 429 | | |
420 | 430 | | |
421 | 431 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
198 | | - | |
| 198 | + | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| 300 | + | |
299 | 301 | | |
300 | 302 | | |
301 | 303 | | |
| |||
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| |||
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
| 489 | + | |
485 | 490 | | |
486 | 491 | | |
487 | 492 | | |
| |||
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
| 502 | + | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| 297 | + | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
| |||
600 | 602 | | |
601 | 603 | | |
602 | 604 | | |
| 605 | + | |
603 | 606 | | |
604 | 607 | | |
605 | 608 | | |
| |||
696 | 699 | | |
697 | 700 | | |
698 | 701 | | |
| 702 | + | |
699 | 703 | | |
700 | 704 | | |
701 | 705 | | |
702 | 706 | | |
703 | 707 | | |
| 708 | + | |
704 | 709 | | |
705 | 710 | | |
706 | 711 | | |
| |||
742 | 747 | | |
743 | 748 | | |
744 | 749 | | |
| 750 | + | |
745 | 751 | | |
746 | 752 | | |
747 | 753 | | |
| |||
967 | 973 | | |
968 | 974 | | |
969 | 975 | | |
| 976 | + | |
970 | 977 | | |
971 | 978 | | |
972 | 979 | | |
| 980 | + | |
973 | 981 | | |
974 | 982 | | |
975 | 983 | | |
| |||
1301 | 1309 | | |
1302 | 1310 | | |
1303 | 1311 | | |
| 1312 | + | |
1304 | 1313 | | |
1305 | 1314 | | |
1306 | 1315 | | |
| |||
1337 | 1346 | | |
1338 | 1347 | | |
1339 | 1348 | | |
| 1349 | + | |
1340 | 1350 | | |
1341 | 1351 | | |
1342 | 1352 | | |
| |||
1374 | 1384 | | |
1375 | 1385 | | |
1376 | 1386 | | |
| 1387 | + | |
1377 | 1388 | | |
1378 | 1389 | | |
1379 | 1390 | | |
| |||
1390 | 1401 | | |
1391 | 1402 | | |
1392 | 1403 | | |
| 1404 | + | |
1393 | 1405 | | |
1394 | 1406 | | |
1395 | 1407 | | |
| |||
1544 | 1556 | | |
1545 | 1557 | | |
1546 | 1558 | | |
| 1559 | + | |
1547 | 1560 | | |
1548 | 1561 | | |
1549 | 1562 | | |
1550 | 1563 | | |
1551 | 1564 | | |
1552 | | - | |
| 1565 | + | |
1553 | 1566 | | |
1554 | 1567 | | |
1555 | 1568 | | |
| |||
1662 | 1675 | | |
1663 | 1676 | | |
1664 | 1677 | | |
| 1678 | + | |
| 1679 | + | |
1665 | 1680 | | |
1666 | 1681 | | |
1667 | 1682 | | |
| |||
0 commit comments