Title: Add optional `graphqlClientIntegration` to `@sentry/browser` · Issue #13399 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add optional `graphqlClientIntegration` to `@sentry/browser` · Issue #13399 · getsentry/sentry-javascript
X Title: Add optional `graphqlClientIntegration` to `@sentry/browser` · Issue #13399 · getsentry/sentry-javascript
Description: Description Similar to getsentry/sentry-cocoa#3931, we can add a pluggable (=not enabled by default) integration to @sentry/browser (and downstream SDKs) which allows to opt-in to get better breadcrumbs & spans when using GraphQL as a cl...
Open Graph Description: Description Similar to getsentry/sentry-cocoa#3931, we can add a pluggable (=not enabled by default) integration to @sentry/browser (and downstream SDKs) which allows to opt-in to get better breadc...
X Description: Description Similar to getsentry/sentry-cocoa#3931, we can add a pluggable (=not enabled by default) integration to @sentry/browser (and downstream SDKs) which allows to opt-in to get better breadc...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/13399
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add optional `graphqlClientIntegration` to `@sentry/browser`","articleBody":"### Description\n\nSimilar to https://github.com/getsentry/sentry-cocoa/pull/3931, we can add a pluggable (=not enabled by default) integration to `@sentry/browser` (and downstream SDKs) which allows to opt-in to get better breadcrumbs & spans when using GraphQL as a client.\n\nThis could behave like this:\n\n```js\nSentry.init({\n integrations: [\n Sentry.graphqlClientIntegration({\n endpoints: ['/graphql'], \n })\n ]\n})\n```\n\nWhere any http.client span or breadcrumb created that matches `endpoints` will be enhanced with graphql data from the request payload:\n\n1. For `http.client` spans, we can update the span name similar to what we do here in node: https://github.com/getsentry/sentry-javascript/pull/13248\n2. For breadcrumbs, we can add the operation name to the breadcrumb data (and possibly also the query itself)\n\nrelated: https://github.com/getsentry/sentry-javascript/issues/13215","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2024-08-16T07:14:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/13399"}
| 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:f0b1680f-d75a-e51d-9064-f81f9a007110 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D900:2A9AF6:34AF04:4A7659:6B040ECB |
| html-safe-nonce | 6eda495ac945f3b77e3bf57e825437a9dfaba52cdc2e52a4f6ba27b88f027961 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTAwOjJBOUFGNjozNEFGMDQ6NEE3NjU5OjZCMDQwRUNCIiwidmlzaXRvcl9pZCI6IjU2MDQ1Mjg4NDA5NjI3Mzk5MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0b8c4bd2cf0565a87354e89faeb220595a3964999c7a664d979eb297a6820f2 |
| hovercard-subject-tag | issue:2469657397 |
| 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/13399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e80a0e3443dcca92a000af9887fccb95add4db0525ce6b5d10965f0e599ae82d/getsentry/sentry-javascript/issues/13399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e80a0e3443dcca92a000af9887fccb95add4db0525ce6b5d10965f0e599ae82d/getsentry/sentry-javascript/issues/13399 |
| og:image:alt | Description Similar to getsentry/sentry-cocoa#3931, we can add a pluggable (=not enabled by default) integration to @sentry/browser (and downstream SDKs) which allows to opt-in to get better breadc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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