Title: Sessions - Provide more options to control session creation · Issue #18921 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sessions - Provide more options to control session creation · Issue #18921 · getsentry/sentry-javascript
X Title: Sessions - Provide more options to control session creation · Issue #18921 · getsentry/sentry-javascript
Description: Problem Statement Observation - Session instrumentation handler does start sessions for each new URL state Problem - webviews use URL to pass information between native app and webview, this triggers a lot of “fake” sessions and consumes...
Open Graph Description: Problem Statement Observation - Session instrumentation handler does start sessions for each new URL state Problem - webviews use URL to pass information between native app and webview, this trigge...
X Description: Problem Statement Observation - Session instrumentation handler does start sessions for each new URL state Problem - webviews use URL to pass information between native app and webview, this trigge...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18921
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sessions - Provide more options to control session creation","articleBody":"### Problem Statement\n\nObservation - Session instrumentation handler does start sessions for each new URL state\nProblem - webviews use URL to pass information between native app and webview, this triggers a lot of “fake” sessions and consumes unnecessary data.\n\nLink to source:\nhttps://github.com/getsentry/sentry-javascript/blob/ba390df3f1279db2fbf8d232b8e162952dcfe99b/packages/browser/src/integrations/browsersession.ts#L30-L35\n\n\n### Solution Brainstorm\n\nThis integration should support configuration options similar to how breadcrumbsIntegration works. The integration could accept options like:\n\n```ts\ninterface BrowserSessionOptions { \n // Disable automatic session creation on URL changes\n trackUrlChanges?: boolean; \n // Or provide a callback to determine if session should be created \n shouldCreateSession?: (from: string, to: string) => boolean;\n}\n```\n\n### Additional Context\n\nCurrently it's only possible to disable session tracking completely.\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/Angelodaniel","@type":"Person","name":"Angelodaniel"},"datePublished":"2026-01-21T13:53:15Z","url":"https://github.com/getsentry/sentry-javascript/issues/18921"}
| 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:f322ea2e-5b21-7b23-990a-53a0bec77ef1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7B8:298B00:9F4D8E:DF1FE6:6B048A3D |
| html-safe-nonce | acea3a35dcff07b5c3fd061eab66c21da06c4694db1994f5982abbbe4727da06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0I4OjI5OEIwMDo5RjREOEU6REYxRkU2OjZCMDQ4QTNEIiwidmlzaXRvcl9pZCI6Ijc3MTg0MzczMjUxNTU2MzM3MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f3c654b3d6d003e576ebff168e308d2b3968de2ad7f60dbdd1f292fd1f0bff17 |
| hovercard-subject-tag | issue:3838380090 |
| 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/18921/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb8bbddbc2681e034fd8702b02ae89a675a67d542f1fc9763286696a27142d54/getsentry/sentry-javascript/issues/18921 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb8bbddbc2681e034fd8702b02ae89a675a67d542f1fc9763286696a27142d54/getsentry/sentry-javascript/issues/18921 |
| og:image:alt | Problem Statement Observation - Session instrumentation handler does start sessions for each new URL state Problem - webviews use URL to pass information between native app and webview, this trigge... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Angelodaniel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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