Title: Only create redis db spans when there is a parent span · Issue #25798 · getsentry/sentry-javascript · GitHub
Open Graph Title: Only create redis db spans when there is a parent span · Issue #25798 · getsentry/sentry-javascript
X Title: Only create redis db spans when there is a parent span · Issue #25798 · getsentry/sentry-javascript
Description: The redis integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context. ioredis already requires a parent. Only create spans when there is an active span in: subscribeLegacyR...
Open Graph Description: The redis integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context. ioredis already requires a parent. Only create spans when ther...
X Description: The redis integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context. ioredis already requires a parent. Only create spans when ther...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25798
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Only create redis db spans when there is a parent span","articleBody":"The `redis` integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context. `ioredis` already requires a parent.\n\nOnly create spans when there is an active span in:\n- `subscribeLegacyRedisCommand` (redis v2/v3) in `packages/server-utils/src/integrations/redis/index.ts`: return early\n- the node-redis v4/v5 `bindTracingChannelToSpan` calls in the same file: pass `requiresParentSpan: true`\n- the command, batch and connect channels in `redis-dc-subscriber.ts`: pass `requiresParentSpan: true`\n\nAdd a test that checks that an operation without an active span creates no span.\n","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-10-28T10:46:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/25798"}
| 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:1297588b-e79f-393b-02f5-563d4b156ca6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91EC:24145A:A1666:DC175:6B044CC3 |
| html-safe-nonce | 5a3e0dd9c42927fe00c6d7553952d74a1a94b0f83c3bba5ab63f360d88dc77d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUVDOjI0MTQ1QTpBMTY2NjpEQzE3NTo2QjA0NENDMyIsInZpc2l0b3JfaWQiOiI3MDgzOTM1MDg5MTg4Njg3MDQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7271f044d82e99eac6771a83b4a78de49bbe775e54b7e6cd59279f483b65d5ff |
| hovercard-subject-tag | issue:6077376267 |
| 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/25798/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b8ab5378d18e2670efd10eedbc7ef0f5be0c87f24df171061640841fed72d3c/getsentry/sentry-javascript/issues/25798 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b8ab5378d18e2670efd10eedbc7ef0f5be0c87f24df171061640841fed72d3c/getsentry/sentry-javascript/issues/25798 |
| og:image:alt | The redis integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context. ioredis already requires a parent. Only create spans when ther... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| 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