Title: LCP is lower than FCP in most performance report data · Issue #6744 · getsentry/sentry-javascript · GitHub
Open Graph Title: LCP is lower than FCP in most performance report data · Issue #6744 · getsentry/sentry-javascript
X Title: LCP is lower than FCP in most performance report data · Issue #6744 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6744
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LCP is lower than FCP in most performance report data","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Which package are you using?\n\n@sentry/react\n\n### SDK Version\n\n@sentry/react 6.9.0 @sentry/tracing 6.9.0\n\n### Framework Version\n\nreact@16.12.0 \n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\nI used the following operations in the single page application I built with webpack and react-router:\r\nUsing HOC (Higher Order Component), I used the following code in the APP entry to monitor react application performance。\r\n\r\n```\r\nimport React from \"react\";\r\nimport * as Sentry from \"@sentry/react\";\r\nimport { Integrations } from \"@sentry/tracing\";\r\n\r\nconst WithSentry = (\r\n WrappedComponent: typeof React.Component\r\n): React.ComponentClass => {\r\n return class WithSeo extends React.PureComponent {\r\n componentDidMount() {\r\n this.initEvent();\r\n }\r\n\r\n private initEvent() {\r\n Sentry.init({\r\n dsn: \"xxxxxxxxxxxxxxxx\",\r\n sampleRate: 1.0,\r\n tracesSampleRate: 0.5,\r\n release: `xxx@v1.0.0`,\r\n integrations: [\r\n new Integrations.BrowserTracing({\r\n beforeNavigate: (context) => {\r\n return {\r\n ...context,\r\n name: location.pathname\r\n .replace(/\\/(\\d+,+|\\d+)+/g, \"/:id\"),\r\n };\r\n },\r\n }),\r\n ],\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n \u003cWrappedComponent {...this.props}>\r\n \u003cSentry.ErrorBoundary>\u003c/Sentry.ErrorBoundary>\r\n \u003c/WrappedComponent>\r\n );\r\n }\r\n };\r\n};\r\n\r\nexport default (WrappedComponent: typeof React.Component) =>\r\n Sentry.withProfiler(WithSentry(WrappedComponent));\r\n```\n\n### Expected Result\n\nThe actual value of LCP will be larger than FCP\n\n### Actual Result\n\n\r\n","author":{"url":"https://github.com/SouthLink","@type":"Person","name":"SouthLink"},"datePublished":"2023-01-12T02:44:07Z","url":"https://github.com/getsentry/sentry-javascript/issues/6744"}
| 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:d04fb864-015a-40f1-dbc7-c389417cf1b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80B8:2D0B15:181686:2130B5:6B0465E7 |
| html-safe-nonce | b07ed423ac87a7e6fedec6fd66797bdbf11272e63b9a0a813fd6e8f34ddb8a67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEI4OjJEMEIxNToxODE2ODY6MjEzMEI1OjZCMDQ2NUU3IiwidmlzaXRvcl9pZCI6Ijg0MDQyNzA4NTg0NjU3MzIwNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a7aa367b27eb5ce11e2e02bc6b2263849c24ef1a8a1e3f432138823e5dcb1989 |
| hovercard-subject-tag | issue:1530007546 |
| 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/6744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1dd5e6a34dcc68651d99dae086e406fc041c7c2c0afd2033c024c08e7ad6baa8/getsentry/sentry-javascript/issues/6744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1dd5e6a34dcc68651d99dae086e406fc041c7c2c0afd2033c024c08e7ad6baa8/getsentry/sentry-javascript/issues/6744 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SouthLink |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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