-
-
Notifications
You must be signed in to change notification settings - Fork 435
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 #2893
Comments
|
On Android we should check whether it's possbile:
@AbhiPrasad we also instrument Room (ORM) spans, but they don't have the underlying SQL query as a description in them. Would it make sense to add these attributes to the ORM spans at all? The ORM spans now have span op |
We need to make sure the starfish views account for the different types of db spans - we'll take care of that. If we could make them their own special span op that would help quite a bit.
I think it still makes sense to add |
@AbhiPrasad is it fine to close this issue once the Android PR is merged, or do we wanna keep it for the java-backend missing things (like |
Yes that sounds good to me. Creating follow-up issues for the Java server specific stuff sounds like a good idea to me. |
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, specifically about the database connection attributes.
NOTE: this should apply to both android and java db spans
We're going to matching the otel db conventions. Either one of
server.address
orserver.socket.address
is required. Ifserver.address
is set, thenserver.port
should be set. Ifserver.port
is different thanserver.socket.port
, thanserver.socket.port
should also be set. In addition,db.name
should be set if possible.db.system
should match the list in OpenTelemetry's well known conventions.The main priority items are db.name and db.system
db.system
mysql
server.address
example.com
server.port
80
;8080
;443
server.socket.address
10.5.3.2
server.socket.port
16456
server.port
.db.name
customers
;main
These values should be set on
span.data
.NOTE: For the Mobile SDKs only
db.name
anddb.system
is requiredMotivation
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: