-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
[Starfish] Add db attributes to database span's span data #3212
Comments
Hey @AbhiPrasad thanks for opening the issue to track this here. My main question is if we already have a comprehensive list of expected db.system values? We could report this generally as For a file-backed database, depending on how this span data will be used, there may be some overlap with the current File I/O on Main Thread performance issue type. We may also want to think about how we might want to get the file path into the span. |
For
This is a great point! I think we need should invest some time into thinking about this considering we're looking at the mobile views right now. I wrote this up as a task on the starfish board https://www.notion.so/sentry/Mobile-database-view-and-file-i-o-on-main-thread-performance-issue-596f63f552c140f2af91251c238f90fa cc @shruthilayaj who's doing it all mobile starfish wise. |
Ah, I didn't see that the list was above that link anchor 😅 Should've read the note more closely. It does say a custom value may be used, and that that list is non-exhaustive. I still think it'd be worthwhile having our own list of known identifiers that may be sent in this field. I think for our purposes in cocoa, we should send something like |
We have our own independent list at https://develop.sentry.dev/sdk/performance/span-data-conventions/ we can update - so feel free to name these however you think makes sense, we'll add it to our internal spec first. OTEL also doesn't pay much attention to mobile things, so it is an opportunity for us to be opinionated and give some recommendations for conventions that makes sense for us and our users. |
Reading more there though, it seems like |
For |
This property is not actually the name of the underlying sqlite database name (if that's what is being used as the backing store), but rather a custom name a developer can set on the context (there can be many contexts per database; it's akin to a JDBC What we can do for As for |
@armcknight Good point about the context, PSC name would probably be closer to the DB name, but as you mention, there can be multiple PSs. I'm not sure how actionable for the user it is to get a list all the URLs for the stores, but it's probably closest to the truth. |
To get an overview of this work across all SDKs, please visit:
https://github.com/orgs/getsentry/projects/135
Parent issue: getsentry/team-sdks#19
For the starfish db module it was determined that we need extra database attributes.
db.name
should be set if possible, but is not required.db.system
should match the list in OpenTelemetry's well known conventions.db.system
sqlite
db.name
customers
;main
These values should be set on
span.data
.Motivation
This is being done for the Sentry's new performance views for databases. See a WIP example of the view below:
The text was updated successfully, but these errors were encountered: