-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Send db.system
and db.name
in span data
#2894
Conversation
|
@AbhiPrasad I only parsed |
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. |
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.
LGTM 👍
assertEquals("memory", details.dbName) | ||
} | ||
|
||
@Test |
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.
(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)
}
📜 Description
Send
db.system
anddb.name
in 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
sendDefaultPII
is enabled.🔮 Next steps