{"id":87208,"date":"2020-07-05T13:42:19","date_gmt":"2020-07-05T11:42:19","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react"},"modified":"2020-07-05T13:42:19","modified_gmt":"2020-07-05T11:42:19","slug":"sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","status":"publish","type":"post","link":"https:\/\/prohoster.info\/bg\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","title":{"rendered":"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u0418\u0437\u0443\u0447\u0430\u0432\u0430\u043c\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 Sentry \u0441 React.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/6ea51ae73accae0c36e0130b830c1ca2.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0422\u0430\u0437\u0438 \u0441\u0442\u0430\u0442\u0438\u044f \u0435 \u0447\u0430\u0441\u0442 \u043e\u0442 \u0441\u0435\u0440\u0438\u044f, \u0437\u0430\u043f\u043e\u0447\u0432\u0430\u0449\u0430 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0437\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 Sentry \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430: <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/508686\/\">\u0427\u0430\u0441\u0442 1<\/a><\/noindex>. <\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p><strong>\u0418\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0430 React<\/strong> <\/p>\n<p><\/p>\n<p>\u041f\u044a\u0440\u0432\u043e, \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442 Sentry \u0437\u0430 \u0442\u043e\u0432\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435; \u043e\u0442 \u0441\u0430\u0439\u0442\u0430 Sentry. \u0412 \u0442\u043e\u0437\u0438 \u0441\u043b\u0443\u0447\u0430\u0439 \u0438\u0437\u0431\u0438\u0440\u0430\u043c\u0435 React.<\/p>\n<p><\/p>\n<p>\u041e\u0442\u043d\u043e\u0432\u043e \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0430\u043c\u0435 \u043d\u0430\u0448\u0438\u0442\u0435 \u0434\u0432\u0435 \u0431\u0443\u0442\u043e\u043d\u0438, Hello \u0438 Error, \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0441 React. \u0417\u0430\u043f\u043e\u0447\u0432\u0430\u043c\u0435 \u0441 \u0441\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043d\u0430\u0448\u0435\u0442\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">npx create-react-app react-app<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0430\u043c\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 Sentry:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">yarn add @sentry\/browser<\/code><\/pre>\n<p><\/p>\n<p>\u0438 \u0433\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0430\u043c\u0435:<\/p>\n<p><\/p>\n<p>react-app \/ src \/ index.js<\/p>\n<p><\/p>\n<pre><code class=\"javascript\">...\nimport * as Sentry from '@sentry\/browser';\n\nconst RELEASE = '0.1.0';\nif (process.env.NODE_ENV === 'production') {\n  Sentry.init({\n    dsn: 'https:\/\/303c04eac89844b5bfc908ceffc6757c@sentry.io\/1289887',\n    release: RELEASE,\n  });\n}\n...<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f:<\/p>\n<p><\/p>\n<ul>\n<li>\u041f\u043e \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0442\u0430 \u0438\u043c\u0430\u043c\u0435 \u0434\u0440\u0443\u0433\u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0438 \u0437\u0430 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u044f\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0438\u0442\u0435, \u043a\u0430\u0442\u043e \u043a\u043e\u043d\u0437\u043e\u043b\u0430\u0442\u0430, \u0437\u0430\u0442\u043e\u0432\u0430 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043c\u0435 Sentry \u0441\u0430\u043c\u043e \u0437\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u0438 \u0432\u0435\u0440\u0441\u0438\u0438.<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0430\u043c\u0435 \u043d\u0430\u0448\u0438\u0442\u0435 \u0431\u0443\u0442\u043e\u043d\u0438 Hello \u0438 Error \u0438 \u0433\u0438 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e:<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ Hello.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"javascript\">import React, { Component } from &#039;react&#039;;\nimport * as Sentry from &#039;@sentry\/browser&#039;;\n\nexport default class Hello extends Component {\n  state = {\n    text: &#039;&#039;,\n  };\n  render() {\n    const { text } = this.state;\n    return (\n      &lt;div&gt;\n        &lt;button\n          onclick=&quot;{this.handleClick}&quot;\n        &gt;\n          \u0417\u0434\u0440\u0430\u0432\u0435\u0439\u0442\u0435\n        &lt;\/button&gt;\n        &lt;div&gt;{text}&lt;\/div&gt;\n      &lt;\/div&gt;\n    )\n  }\n\n  handleClick = () =&amp;gt; {\n    this.setState({\n      text: &#039;\u0417\u0434\u0440\u0430\u0432\u0435\u0439\u0442\u0435, \u0441\u0432\u044f\u0442&#039;,\n    });\n    try {\n      throw new Error(&#039;\u0425\u0432\u0430\u043d\u0430\u0442\u0430&#039;);\n    } catch (err) {\n      if (process.env.NODE_ENV !== &#039;production&#039;) {\n        return;\n      }\n      Sentry.captureException(err);\n    }\n  }\n}<\/code><\/pre>\n<p><\/p>\n<p><em>react-app \/ src \/ MyError.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">import React, { Component } from &#039;react&#039;;\n\nexport default class MyError extends Component {\n  render() {\n    return (\n      &lt;div&gt;\n        &lt;button\n          onclick=&quot;{this.handleClick}&quot;\n        &gt;\n          \u0413\u0440\u0435\u0448\u043a\u0430\n        &lt;\/button&gt;\n      &lt;\/div&gt;\n    )\n  }\n\n  handleClick = () =&amp;gt; {\n    throw new Error(&#039;\u041d\u0435 \u0445\u0432\u0430\u043d\u0430\u0442\u0430&#039;);\n  }\n}<\/code><\/pre>\n<p><\/p>\n<p><em>react-app \/ src \/ App.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">...&lt;br \/&gt;import Hello from &#039;.\/Hello&#039;;&lt;br \/&gt;import MyError from &#039;.\/MyError&#039;;&lt;br \/&gt;&lt;br \/&gt;class App extends Component {&lt;br \/&gt;  render() {&lt;br \/&gt;    return (\n      &lt;div classname=&quot;App&quot;&gt;\n        ...\n        &lt;hello \/&gt;\n        &lt;myerror \/&gt;\n      &lt;\/div&gt;\n    );&lt;br \/&gt;  }&lt;br \/&gt;}&lt;br \/&gt;&lt;br \/&gt;export default App;<\/code><\/pre>\n<p><\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 (\u0418\u0437\u0445\u043e\u0434\u043d\u0438 \u041a\u0430\u0440\u0442\u0438)<\/strong><\/p>\n<p><\/p>\n<p>\u041c\u043e\u0436\u0435\u043c \u0434\u0430 \u0442\u0435\u0441\u0442\u0432\u0430\u043c\u0435 Sentry \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u0430\u0442\u043e \u0432\u044a\u0432\u0435\u0434\u0435\u043c:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">yarn build<\/code><\/pre>\n<p><\/p>\n<p>\u0438 \u043e\u0442 \u043f\u0430\u043f\u043a\u0430\u0442\u0430 build \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">npx http-server -c-1<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044a\u0442, \u0441 \u043a\u043e\u0439\u0442\u043e \u0432\u0435\u0434\u043d\u0430\u0433\u0430 \u0449\u0435 \u0441\u0435 \u0441\u0431\u043b\u044a\u0441\u043a\u0430\u043c\u0435, \u0435, \u0447\u0435 \u0437\u0430\u043f\u0438\u0441\u0438\u0442\u0435 \u0437\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 Sentry \u0441\u0435 \u043e\u0442\u043d\u0430\u0441\u044f\u0442 \u0434\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430 \u0440\u0435\u0434\u043e\u0432\u0435\u0442\u0435 \u0432 \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0438\u0440\u0430\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442; \u043d\u0435 \u0435 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/e5b320f731249bad65a82e33c4e09b43.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0421\u043b\u0443\u0436\u0431\u0430\u0442\u0430 Sentry \u043e\u0431\u044f\u0441\u043d\u044f\u0432\u0430 \u0442\u043e\u0432\u0430, \u0438\u0437\u0432\u043b\u0438\u0447\u0430\u0439\u043a\u0438 \u0438\u0437\u0445\u043e\u0434\u043d\u0438 \u043a\u0430\u0440\u0442\u0438 \u0437\u0430 \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0438\u0440\u0430\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442 \u0441\u043b\u0435\u0434 \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430. \u0412 \u0442\u043e\u0437\u0438 \u0441\u043b\u0443\u0447\u0430\u0439 \u0440\u0430\u0431\u043e\u0442\u0438\u043c \u043e\u0442 localhost (\u043a\u043e\u0439\u0442\u043e \u043d\u0435 \u0435 \u0434\u043e\u0441\u0442\u044a\u043f\u0435\u043d \u0437\u0430 Sentry).<\/p>\n<p><\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f (\u0418\u0437\u0445\u043e\u0434\u043d\u0438 \u041a\u0430\u0440\u0442\u0438)<\/strong><\/p>\n<p><\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u0442\u043e\u0437\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0435 \u0441\u0432\u044a\u0440\u0437\u0430\u043d\u043e \u0441 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u043e\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u0435\u043d \u0443\u0435\u0431 \u0441\u044a\u0440\u0432\u044a\u0440. \u0415\u0434\u0438\u043d \u043f\u0440\u043e\u0441\u0442 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0443\u0441\u043b\u0443\u0433\u0430\u0442\u0430 GitHub Pages (\u0431\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u043e). \u0421\u0442\u044a\u043f\u043a\u0438\u0442\u0435 \u0437\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435 \u043e\u0431\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u043e \u0441\u0430 \u0441\u043b\u0435\u0434\u043d\u0438\u0442\u0435:<\/p>\n<p><\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u043f\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u043f\u0430\u043f\u043a\u0430\u0442\u0430 <em>build<\/em> \u0432 \u043f\u0430\u043f\u043a\u0430\u0442\u0430 <em>docs<\/em> \u0432 \u043a\u043e\u0440\u0435\u043d\u043e\u0432\u0430\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0442\u043e.<\/p>\n<p>\n<\/li>\n<li>\n<p>\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u0439\u0442\u0435 <em>GitHub Pages<\/em> \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f (\u043e\u0442 GitHub), \u0437\u0430 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u043f\u0430\u043f\u043a\u0430\u0442\u0430 docs \u0432 <em>master<\/em> \u043a\u043b\u043e\u043d\u043e\u0432\u0435<\/p>\n<p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0435\u0445\u0432\u044a\u0440\u043b\u0435\u0442\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430 GitHub<\/p>\n<p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p><strong>\u0417\u0430\u0431\u0435\u043b\u0435\u0436\u043a\u0430<\/strong>: \u0441\u043b\u0435\u0434 \u043a\u0430\u0442\u043e \u0440\u0430\u0437\u0431\u0440\u0430\u0445, \u0447\u0435 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c <em>create-create-app<\/em> \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0442\u0430 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0437\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e. \u0421\u044a\u0441\u0442\u043e\u0438 \u0441\u0435 \u0432 \u0434\u043e\u0431\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0432 package.json:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">\"homepage\": \"https:\/\/larkintuckerllc.github.io\/hello-sentry\/\"<\/code><\/pre>\n<p><\/p>\n<p>\u041e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u043d\u0430\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u043e\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u0430 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0430:<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/larkintuckerllc.github.io\/hello-sentry\/\">https:\/\/larkintuckerllc.github.io\/hello-sentry\/<\/a><\/noindex><\/p>\n<p><\/p>\n<p><strong>\u0418\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0443\u043b\u043e\u0432\u0435\u043d\u0438\u0442\u0435 \u0433\u0440\u0435\u0448\u043a\u0438<\/strong><\/p>\n<p><\/p>\n<p>\u041d\u0435\u043a\u0430 \u043f\u0440\u0435\u043c\u0438\u043d\u0435\u043c \u043f\u0440\u0435\u0437 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0431\u0443\u0442\u043e\u043d\u0430 Hello.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/1dbe7845b2e3d04933344d3d18dac01f.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0421 \u0433\u0440\u0435\u0448\u043a\u0430, \u043f\u043e\u044f\u0432\u044f\u0432\u0430\u0449\u0430 \u0441\u0435 \u043f\u043e \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043d\u0430\u0447\u0438\u043d:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/621f0f12eb77b7dd413d168c35c141d4.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u041d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f:<\/p>\n<p><\/p>\n<ul>\n<li>\u0422\u043e\u0437\u0438 \u043e\u0442\u0447\u0435\u0442 \u0437\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435 \u043f\u043e-\u044f\u0441\u0435\u043d, <strong>\u0411\u0420\u0410\u0412\u041e<\/strong>.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>\u0418\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u043d\u0435\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0432\u0430\u043d\u0438\u0442\u0435 \u0433\u0440\u0435\u0448\u043a\u0438<\/strong><\/p>\n<p><\/p>\n<p>\u041f\u043e\u0434\u043e\u0431\u043d\u043e \u044d\u0442\u043e\u043c\u0443, \u043d\u0435\u043a\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u043c\u0435 \u043d\u0430\u0442\u0438\u0441\u043a\u0430 \u043d\u0430 \u0431\u0443\u0442\u043e\u043d\u0430 <em>\u0413\u0440\u0435\u0448\u043a\u0430<\/em>.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/65c07bc6db9f6b577ecb79dfd3336b38.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0421 \u0433\u0440\u0435\u0448\u043a\u0430, \u043f\u043e\u044f\u0432\u044f\u0432\u0430\u0449\u0430 \u0441\u0435 \u043f\u043e \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043d\u0430\u0447\u0438\u043d:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/f4d668075885bb66ce0158588bff038c.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><strong>\u041d\u0430\u0439-\u0434\u043e\u0431\u0440\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u043d\u0435\u0443\u043b\u043e\u0432\u0435\u043d\u0438 \u0433\u0440\u0435\u0448\u043a\u0438 (\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0440\u0430\u043d\u0435)<\/strong><\/p>\n<p><\/p>\n<blockquote><p>\u0412\u044a\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0413\u0440\u0430\u043d\u0438\u0446\u0438 \u043d\u0430 \u0413\u0440\u0435\u0448\u043a\u0438<\/p>\n<p>JavaScript \u0433\u0440\u0435\u0448\u043a\u0430 \u0432 \u0447\u0430\u0441\u0442\u0442\u0430 \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0441\u043a\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043d\u0430\u0440\u0443\u0448\u0430\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u0430 \u043d\u0430 \u0446\u044f\u043b\u043e\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0417\u0430 \u0434\u0430 \u0441\u0435 \u0440\u0435\u0448\u0438 \u0442\u043e\u0437\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0437\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438\u0442\u0435 \u043d\u0430 React, React 16 \u0432\u044a\u0432\u0435\u0436\u0434\u0430 \u043d\u043e\u0432\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \"\u0433\u0440\u0430\u043d\u0438\u0446\u0438 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\".<\/p>\n<p>\u0413\u0440\u0430\u043d\u0438\u0446\u0438\u0442\u0435 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u0441\u0430 React \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438, \u043a\u043e\u0438\u0442\u043e \u0443\u043b\u0430\u0432\u044f\u0442 JavaScript \u0433\u0440\u0435\u0448\u043a\u0438 \u043d\u0430 \u0432\u0441\u044f\u043a\u043e \u043c\u044f\u0441\u0442\u043e \u0432 \u0441\u0432\u043e\u0435\u0442\u043e \u0434\u044a\u0449\u0435\u0440\u043d\u043e \u0434\u044a\u0440\u0432\u043e \u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438, \u0437\u0430\u043f\u0438\u0441\u0432\u0430\u0442 \u0442\u0435\u0437\u0438 \u0433\u0440\u0435\u0448\u043a\u0438 \u0438 \u043f\u043e\u043a\u0430\u0437\u0432\u0430\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u0435\u043d \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0441\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0447\u0443\u043f\u0435\u043d\u043e\u0442\u043e \u0434\u044a\u0440\u0432\u043e \u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438. \u0413\u0440\u0430\u043d\u0438\u0446\u0438\u0442\u0435 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u043f\u0440\u0438\u0445\u0432\u0430\u0449\u0430\u0442 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u043f\u043e \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0440\u0430\u043d\u0435, \u0432 \u043c\u0435\u0442\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 \u0436\u0438\u0432\u043e\u0442 \u0438 \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u0446\u044f\u043b\u043e\u0442\u043e \u0434\u044a\u0440\u0432\u043e \u043f\u043e\u0434 \u0442\u044f\u0445.<\/p>\n<p>\u2026<\/p>\n<p>\u041d\u043e\u0432\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0430 \u043d\u0435\u0437\u0430\u0431\u0435\u043b\u044f\u0437\u0430\u043d\u0438 \u0433\u0440\u0435\u0448\u043a\u0438<\/p>\n<p>\u0422\u0430\u0437\u0438 \u043f\u0440\u043e\u043c\u044f\u043d\u0430 \u0435 \u043e\u0442 \u0441\u044a\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0417\u0430\u043f\u043e\u0447\u0432\u0430\u0439\u043a\u0438 \u0441 React 16, \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435, \u043a\u043e\u0438\u0442\u043e \u043d\u0435 \u0441\u0430 \u0443\u043b\u043e\u0432\u0435\u043d\u0438 \u043e\u0442 \u043d\u0438\u043a\u0430\u043a\u0432\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438, \u0449\u0435 \u0434\u043e\u0432\u0435\u0434\u0430\u0442 \u0434\u043e \u0434\u0435\u043c\u043e\u043d\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0446\u044f\u043b\u043e\u0442\u043e \u0434\u044a\u0440\u0432\u043e \u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438 \u043d\u0430 React.<\/p>\n<p>\u2014 <em>\u0414\u0430\u043d \u0410\u0431\u0440\u0430\u043c\u043e\u0432 \u2014<\/em> <noindex><a rel=\"nofollow\" href=\"https:\/\/reactjs.org\/blog\/2017\/07\/26\/error-handling-in-react-16.html\"><em>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 React 16<\/em><\/a><\/noindex><\/p><\/blockquote>\n<p>\u0412\u0430\u0436\u043d\u043e \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0435\u0442\u043e \u043c\u0438 \u043e\u0442\u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0432\u0440\u0435\u043c\u0435, \u043f\u0440\u0435\u0434\u0438 \u0434\u0430 \u0433\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0430, \u0435, \u0447\u0435 <strong>\u043f\u043e-\u0433\u043e\u0440\u0435 \u0441\u043f\u043e\u043c\u0435\u043d\u0430\u0442\u043e\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0438 \u0441\u0430\u043c\u043e \u0441 \u0433\u0440\u0435\u0448\u043a\u0438, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0430\u043d\u0438 \u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0440\u0430\u043d\u0435 (\u0438\u043b\u0438, \u043f\u043e-\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432 \u043a\u043e\u0439\u0442\u043e \u0438 \u0434\u0430 \u0435 \u043e\u0442 \u043c\u0435\u0442\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 \u0436\u0438\u0432\u043e\u0442)<\/strong>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0438 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u043d\u044f\u043c\u0430 \u0434\u0430 \u0431\u044a\u0434\u0435 \u043e\u0442 \u043f\u043e\u043b\u0437\u0430 \u0441 \u043d\u0430\u0448\u0438\u044f \u0431\u0443\u0442\u043e\u043d <em>\u0413\u0440\u0435\u0448\u043a\u0430<\/em>; \u0442\u0430\u0437\u0438 \u0433\u0440\u0435\u0448\u043a\u0430 \u0431\u0435\u0448\u0435 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043d\u0430 \u043a\u043b\u0438\u043a.<\/p>\n<p><\/p>\n<p>\u041d\u0435\u043a\u0430 \u0441\u044a\u0437\u0434\u0430\u0434\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 \u0438 \u0441\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u0438\u0442\u0435 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u0437\u0430 \u043f\u043e-\u0435\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430\u0442\u0430.<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ MyRenderError<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">import React, { Component } \u043e\u0442 &#039;react&#039;;\n\nexport default class MyRenderError extends Component {\n  state = {\n    flag: false,\n  };\n  render() {\n    const { flag } = this.state;\n    return (\n      &lt;div&gt;\n        &lt;button\n          onclick=&quot;{this.handleClick}&quot;\n        &gt;\n          \u0413\u0440\u0435\u0448\u043a\u0430 \u043f\u0440\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0440\u0430\u043d\u0435\n        &lt;\/button&gt;\n        { flag &amp;amp;&amp;amp; &lt;div&gt;{flag.busted.bogus}&lt;\/div&gt; }\n      &lt;\/div&gt;\n    )\n  }\n\n  handleClick = () =&amp;gt; {\n    this.setState({\n      flag: true,\n    });\n  }\n}<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435:<\/p>\n<p><\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u0435 \u043d\u0430 \u0431\u0443\u0442\u043e\u043d\u0430, <em>React<\/em> \u0449\u0435 \u0441\u0435 \u043f\u043e\u043a\u0430\u0436\u0435 <em>flag.busted.bogus<\/em>, \u043a\u043e\u044f\u0442\u043e \u043f\u0440\u0435\u0434\u0438\u0437\u0432\u0438\u043a\u0432\u0430 \u0433\u0440\u0435\u0448\u043a\u0430<\/p>\n<p>\n<\/li>\n<li>\n<p>\u0411\u0435\u0437 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u0446\u044f\u043b\u043e\u0442\u043e \u0434\u044a\u0440\u0432\u043e \u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0434\u0435\u043c\u043e\u043d\u0442\u0438\u0440\u0430\u043d\u043e<\/p>\n<p>\n<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u043f\u0438\u0448\u0435\u043c \u043d\u0430\u0448\u0438\u044f \u043a\u043e\u0434 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 (\u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u043d\u043e\u0432\u0438\u044f \u043c\u0435\u0442\u043e\u0434 \u043d\u0430 \u0436\u0438\u0437\u043d\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u044a\u043b <em>componentDidCatch<\/em>); \u0442\u043e\u0432\u0430, \u043f\u043e \u0441\u044a\u0449\u0435\u0441\u0442\u0432\u043e, \u0435 \u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0435\u043d \u0432 \u0441\u0442\u0430\u0442\u0438\u044f\u0442\u0430 \u043d\u0430 \u0414\u0430\u043d \u0410\u0431\u0440\u0430\u043c\u043e\u0432:<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ ErrorBoundary.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">import React, { Component } from &#039;react&#039;;\nimport * as Sentry from &#039;@sentry\/browser&#039;;\n\nexport default class ErrorBoundary extends Component {\n  constructor(props) {\n    super(props);\n    this.state = { hasError: false };\n  }\n\n  componentDidCatch(err, info) {\n    this.setState({ hasError: true });\n    Sentry.captureException(err);\n  }\n\n  render() {\n    if (this.state.hasError) {\n      return &lt;h1&gt;\u041d\u0435\u0449\u043e \u0441\u0435 \u043e\u0431\u044a\u0440\u043a\u0430.&lt;\/h1&gt;;\n    }\n    return this.props.children;\n  }\n}<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430\u043a\u0440\u0430\u044f, \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 \u0442\u043e\u0437\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442:<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ App.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">...&lt;br&gt;import MyRenderError from &#039;.\/MyRenderError&#039;;&lt;br&gt;&lt;br&gt;class App extends Component {&lt;br&gt;  render() {&lt;br&gt;    return (\n      &lt;errorboundary&gt;\n        &lt;div classname=&quot;App&quot;&gt;\n          ...\n        &lt;\/div&gt;\n      &lt;\/errorboundary&gt;\n    );\n  }\n}\n...<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u0435 \u043d\u0430 \u0431\u0443\u0442\u043e\u043d\u0430 Render Error, \u0441\u0435 \u043f\u043e\u043a\u0430\u0437\u0432\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u0435\u043d \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0441\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0441\u0435 \u043e\u0442\u0447\u0438\u0442\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 Sentry.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/e410ee6355f5d423281fe278b638a09d.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry \u043e\u0442\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 React\" src=\"\/wp-content\/uploads\/2020\/07\/58183f6f6aef124e8d14acaaf7e0d4fe.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><strong>\u0417\u0430\u0432\u044a\u0440\u0448\u0432\u0430\u043d\u0435<\/strong><\/p>\n<p><\/p>\n<p>\u041d\u0430\u0434\u044f\u0432\u0430\u043c \u0441\u0435, \u0447\u0435 \u0442\u043e\u0432\u0430 \u0435 \u0431\u0438\u043b\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0437\u0430 \u0432\u0430\u0441.<\/p>\n<p><\/p>\n<p>P.S. <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/@johntucker_48673\/sentry-error-reporting-by-example-part-2-cd7b2f653be4\">\u041b\u0438\u043d\u043a \u043a\u044a\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430<\/a><\/noindex> <\/p>\n<p><\/p>\n<p>P.S. \u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0447\u0430\u0442 \u0437\u0430 Sentry <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/sentry_ru\">https:\/\/t.me\/sentry_ru<\/a><\/noindex><\/p>\n<p>\u0418\u0437\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/509362\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041c\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Sentry \u0441 React. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0435\u0440\u0438\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0435\u0439\u0441\u044f \u0441 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 Sentry \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435: \u0427\u0430\u0441\u0442\u044c 1. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f React \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Sentry \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f; \u0441 \u0441\u0430\u0439\u0442\u0430 Sentry. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c React. \u041c\u044b \u0432\u043d\u043e\u0432\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043d\u0430\u0448\u0438 \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, Hello \u0438 Error, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 React. \u041c\u044b [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":87209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-87208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041c\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Sentry \u0441 React.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/bg\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"bg_BG\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Sentry \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0430\u0433\u043e\u0432 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 React | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041c\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Sentry \u0441 React.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/bg\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-07-05T11:42:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-07-05T11:42:19+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Sentry \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e \u0441\u043b\u0435\u0434\u0438 \u0437\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u0432 React \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f | ProHoster","description":"\u0418\u0437\u0443\u0447\u0430\u0432\u0430\u043c\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 Sentry \u0441 React.","canonical_url":"https:\/\/prohoster.info\/bg\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"bg_BG","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Sentry \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0431\u0430\u0433\u043e\u0432 \u0432 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 React | ProHoster","og:description":"\u041c\u044b \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Sentry \u0441 React.","og:url":"https:\/\/prohoster.info\/bg\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-07-05T11:42:19+00:00","article:modified_time":"2020-07-05T11:42:19+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"87208","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 13:56:23","updated":"2022-10-01 14:58:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts\/87208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/comments?post=87208"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts\/87208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/media\/87209"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/media?parent=87208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/categories?post=87208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/tags?post=87208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}