Send db.system and db.name in span data#2894
Merged
Conversation
Contributor
|
Member
Author
|
@AbhiPrasad I only parsed |
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 4bf202b | 364.28 ms | 419.66 ms | 55.38 ms |
| 3baa73f | 267.45 ms | 388.30 ms | 120.85 ms |
| f274c79 | 334.86 ms | 348.54 ms | 13.68 ms |
| 496bdfd | 272.86 ms | 407.33 ms | 134.48 ms |
| fe10f05 | 314.71 ms | 360.62 ms | 45.90 ms |
| caf50ec | 302.36 ms | 325.25 ms | 22.89 ms |
| 87b3774 | 310.48 ms | 362.04 ms | 51.56 ms |
| fb296f0 | 340.61 ms | 394.88 ms | 54.27 ms |
| f60279b | 324.60 ms | 345.33 ms | 20.73 ms |
| 8820c5c | 330.60 ms | 416.86 ms | 86.26 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 4bf202b | 1.72 MiB | 2.29 MiB | 575.54 KiB |
| 3baa73f | 1.72 MiB | 2.29 MiB | 575.52 KiB |
| f274c79 | 1.72 MiB | 2.29 MiB | 575.01 KiB |
| 496bdfd | 1.72 MiB | 2.28 MiB | 571.82 KiB |
| fe10f05 | 1.72 MiB | 2.29 MiB | 575.54 KiB |
| caf50ec | 1.72 MiB | 2.29 MiB | 575.24 KiB |
| 87b3774 | 1.72 MiB | 2.29 MiB | 575.54 KiB |
| fb296f0 | 1.72 MiB | 2.29 MiB | 575.70 KiB |
| f60279b | 1.72 MiB | 2.29 MiB | 575.23 KiB |
| 8820c5c | 1.72 MiB | 2.28 MiB | 571.82 KiB |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2894 +/- ##
============================================
- Coverage 80.52% 79.61% -0.92%
- Complexity 4714 6038 +1324
============================================
Files 371 469 +98
Lines 17566 23294 +5728
Branches 2365 3176 +811
============================================
+ Hits 14145 18545 +4400
- Misses 2447 3353 +906
- Partials 974 1396 +422
☔ View full report in Codecov by Sentry. |
lbloder
approved these changes
Aug 11, 2023
| assertEquals("memory", details.dbName) | ||
| } | ||
|
|
||
| @Test |
Collaborator
There was a problem hiding this comment.
(l) Maybe add the same test for linux?
Won't make a coverage difference, but IMO makes the tests more complete from a user perspective.
@Test
fun `detects db system for sqlite linux`() {
val details = DatabaseUtils.parse("jdbc:sqlite:/home/sqlite/db/some.db")
assertEquals("sqlite", details.dbSystem)
assertEquals("/home/sqlite/db/some.db", details.dbName)
}
AbhiPrasad
approved these changes
Aug 11, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Send
db.systemanddb.namein DB span data. To do this we have to parse the JDBC connection string.💡 Motivation and Context
Parts of what's required for #2893
💚 How did you test it?
Unit tests, manually
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps