Title: [Starfish] Add db attributes to database span's span data · Issue #8771 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Starfish] Add db attributes to database span's span data · Issue #8771 · getsentry/sentry-javascript
X Title: [Starfish] Add db attributes to database span's span data · Issue #8771 · getsentry/sentry-javascript
Description: 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, speci...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8771
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Starfish] Add db attributes to database span's span data","articleBody":"To get an overview of this work across all SDKs, please visit:\r\nhttps://github.com/orgs/getsentry/projects/135\r\n\r\nParent issue: https://github.com/getsentry/team-sdks/issues/19\r\n\r\nFor the starfish db module it was determined that we need extra database attributes, specifically about the database connection attributes.\r\n\r\nWe're going to matching the [otel db conventions](https://opentelemetry.io/docs/specs/otel/trace/semantic_conventions/database/). Either one of `server.address` or `server.socket.address` is required. If `server.address` is set, then `server.port` should be set. If `server.port` is different than `server.socket.port`, than `server.socket.port` should also be set. In addition, `db.name` should be set if possible.\r\n\r\n| Attribute | Type | Description | Examples | Requirement Level |\r\n|---|---|---|---|---|\r\n| `server.address` | string | Name of the database host. | `example.com` | Conditionally Required: See alternative attributes below. |\r\n| `server.port` | int | Logical server port number | `80`; `8080`; `443` | Conditionally Required: [1] |\r\n| `server.socket.address` | string | Physical server IP address or Unix socket address. | `10.5.3.2` | See below |\r\n| `server.socket.port` | int | Physical server port. | `16456` | Recommended: If different than `server.port`. |\r\n| `db.name` | string | This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails). | `customers`; `main` | Conditionally Required: If applicable. |\r\n\r\nThese values should be set on `span.data`.\r\n\r\n\r\n```[tasklist]\r\n### Tasks\r\n- [ ] https://github.com/getsentry/sentry-javascript/pull/8774\r\n- [ ] https://github.com/getsentry/sentry-javascript/pull/8775\r\n- [ ] https://github.com/getsentry/sentry-javascript/pull/8778\r\n- [ ] https://github.com/getsentry/sentry-javascript/pull/8779\r\n```\r\n\r\n### Motivation\r\n\r\nThis is being done for the Sentry's [new performance views for databases](https://sentry.sentry.io/starfish/database/). See a WIP example of the view below:\r\n\r\n\u003cimg width=\"1251\" alt=\"image\" src=\"https://github.com/getsentry/sentry-laravel/assets/18689448/962c5fea-1b38-481c-ba22-7046a33ea454\">","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2023-08-09T14:18:48Z","url":"https://github.com/getsentry/sentry-javascript/issues/8771"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24c5662f-1413-bae4-a586-d4369ac2e532 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF9C:1CB7BC:16C5D3:1F19F9:6B044F6B |
| html-safe-nonce | 4e4047db7473b3ee00ae8a39617eb60ca3158b58cacaea9331506a9de3400e6d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjlDOjFDQjdCQzoxNkM1RDM6MUYxOUY5OjZCMDQ0RjZCIiwidmlzaXRvcl9pZCI6IjY2NzkxNTI5NDU3MzQ2MzUzNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ad7664876b272d0a3372ea46c151f546fc460cdb59b088ce2b7f549950944e28 |
| hovercard-subject-tag | issue:1843350958 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8771/issue_layout |
| twitter:image | https://opengraph.githubassets.com/440a7c7268dbf9e7a7eafc379239b41a0f1da02bc56de86e00408d4297882699/getsentry/sentry-javascript/issues/8771 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/440a7c7268dbf9e7a7eafc379239b41a0f1da02bc56de86e00408d4297882699/getsentry/sentry-javascript/issues/8771 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width