{"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\/cs\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","title":{"rendered":"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Studujeme pou\u017eit\u00ed Sentry s React.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/6ea51ae73accae0c36e0130b830c1ca2.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Tento \u010dl\u00e1nek je sou\u010d\u00e1st\u00ed s\u00e9rie, kter\u00e1 za\u010d\u00edn\u00e1 zpr\u00e1vou o chyb\u00e1ch Sentry na p\u0159\u00edkladu: <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/508686\/\">\u010c\u00e1st 1<\/a><\/noindex>. <\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p><strong>Implementace React<\/strong> <\/p>\n<p><\/p>\n<p>Nejprve mus\u00edme p\u0159idat nov\u00fd projekt Sentry pro tuto aplikaci; na webov\u00e9 str\u00e1nce Sentry. V tomto p\u0159\u00edpad\u011b vyb\u00edr\u00e1me React.<\/p>\n<p><\/p>\n<p>Znovu implementujeme na\u0161e dv\u011b tla\u010d\u00edtka, Hello a Error, aplikaci s React. Za\u010d\u00edn\u00e1me vytvo\u0159en\u00edm na\u0161\u00ed startovac\u00ed aplikace:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">npx create-react-app react-app<\/code><\/pre>\n<p><\/p>\n<p>Pot\u00e9 importujeme bal\u00ed\u010dek Sentry:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">yarn add @sentry\/browser<\/code><\/pre>\n<p><\/p>\n<p>a inicializujeme ho:<\/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>Pozorov\u00e1n\u00ed:<\/p>\n<p><\/p>\n<ul>\n<li>B\u011bhem v\u00fdvoje m\u00e1me jin\u00e9 mechanismy pro sledov\u00e1n\u00ed probl\u00e9m\u016f, nap\u0159\u00edklad konzoli, tak\u017ee Sentry zap\u00edn\u00e1me pouze pro produk\u010dn\u00ed sestaven\u00ed.<\/li>\n<\/ul>\n<p><\/p>\n<p>Pot\u00e9 implementujeme na\u0161e tla\u010d\u00edtka Hello a Error a p\u0159id\u00e1me je do aplikace:<\/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          Ahoj\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;Ahoj sv\u011bte&#039;,\n    });\n    try {\n      throw new Error(&#039;Chyceno&#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          Chyba\n        &lt;\/button&gt;\n      &lt;\/div&gt;\n    )\n  }\n\n  handleClick = () =&amp;gt; {\n    throw new Error(&#039;Uncaught&#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\">...\\nimport Hello from &#039;.\/Hello&#039;;\\nimport MyError from &#039;.\/MyError&#039;;\\n\\nclass App extends Component {\\n  render() {\\n    return (\n      &lt;div classname=&quot;App&quot;&gt;\n        ...\n        &lt;hello \/&gt;\n        &lt;myerror \/&gt;\n      &lt;\/div&gt;\n    );\\n  }\\n}\\n\\nexport default App;<\/code><\/pre>\n<p><\/p>\n<p><strong>Probl\u00e9m (Zdrojov\u00e9 mapy)<\/strong><\/p>\n<p><\/p>\n<p>M\u016f\u017eeme otestovat Sentry s produk\u010dn\u00edm sestaven\u00edm t\u00edmto zp\u016fsobem:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">yarn build<\/code><\/pre>\n<p><\/p>\n<p>a z build slo\u017eky zadejte:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">npx http-server -c-1<\/code><\/pre>\n<p><\/p>\n<p>Probl\u00e9m, se kter\u00fdm se okam\u017eit\u011b setk\u00e1me, spo\u010d\u00edv\u00e1 v tom, \u017ee z\u00e1znamy o chyb\u00e1ch Sentry odkazuj\u00ed na \u010d\u00edsla \u0159\u00e1dk\u016f ve zmen\u0161en\u00e9m bal\u00ed\u010dku; nen\u00ed to p\u0159\u00edli\u0161 u\u017eite\u010dn\u00e9.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/e5b320f731249bad65a82e33c4e09b43.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Slu\u017eba Sentry to vysv\u011btluje t\u00edm, \u017ee po obdr\u017een\u00ed chyby vyt\u00e1hne zdrojov\u00e9 mapy pro zmen\u0161en\u00fd bal\u00ed\u010dek. V tom p\u0159\u00edpad\u011b b\u011b\u017e\u00edme z localhost (kter\u00fd nen\u00ed Sentry dostupn\u00fd).<\/p>\n<p><\/p>\n<p><strong>\u0158e\u0161en\u00ed (Zdrojov\u00e9 mapy)<\/strong><\/p>\n<p><\/p>\n<p>\u0158e\u0161en\u00ed tohoto probl\u00e9mu spo\u010d\u00edv\u00e1 v provozov\u00e1n\u00ed aplikace z ve\u0159ejn\u00e9ho webov\u00e9ho serveru. Jednoduch\u00e1 odpov\u011b\u010f na to je pou\u017e\u00edt slu\u017ebu GitHub Pages (zdarma). Obvykl\u00e9 kroky jsou n\u00e1sleduj\u00edc\u00ed:<\/p>\n<p><\/p>\n<ol>\n<li>\n<p>Zkop\u00edrujte obsah slo\u017eky <em>build<\/em> do slo\u017eky <em>docs<\/em> v ko\u0159enov\u00e9m adres\u00e1\u0159i repozit\u00e1\u0159e.<\/p>\n<p>\n<\/li>\n<li>\n<p>Povolit <em>GitHub Pages<\/em> v repozit\u00e1\u0159i (z GitHubu), aby pou\u017e\u00edval slo\u017eku docs v <em>master<\/em> v\u011btvi<\/p>\n<p>\n<\/li>\n<li>\n<p>P\u0159en\u00e9st zm\u011bny na GitHub<\/p>\n<p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p><strong>Pozn\u00e1mka<\/strong>: pot\u00e9, co jsem pochopil, \u017ee mus\u00edm pou\u017e\u00edt <em>create-create-app<\/em> funkci homepage pro spu\u0161t\u011bn\u00ed aplikace. Spo\u010d\u00edvalo to v p\u0159id\u00e1n\u00ed n\u00e1sleduj\u00edc\u00edho do 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>Kone\u010dn\u00e1 verze spu\u0161t\u011bn\u00e9 aplikace je dostupn\u00e1 na adrese:<\/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>Ilustrace zachycen\u00fdch chyb<\/strong><\/p>\n<p><\/p>\n<p>Poj\u010fme proj\u00edt stisknut\u00edm tla\u010d\u00edtka Hello.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/1dbe7845b2e3d04933344d3d18dac01f.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>S chybou, kter\u00e1 se objev\u00ed n\u00e1sleduj\u00edc\u00edm zp\u016fsobem:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/621f0f12eb77b7dd413d168c35c141d4.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Pozorov\u00e1n\u00ed:<\/p>\n<p><\/p>\n<ul>\n<li>Tato zpr\u00e1va o chyb\u011b nem\u016f\u017ee b\u00fdt jasn\u011bj\u0161\u00ed, <strong>BRAVO<\/strong>.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>Ilustrace nezohledn\u011bn\u00fdch chyb<\/strong><\/p>\n<p><\/p>\n<p>Podobn\u011b, poj\u010fme proj\u00edt stisknut\u00edm tla\u010d\u00edtka <em>Chyba<\/em>.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/65c07bc6db9f6b577ecb79dfd3336b38.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>S chybou, kter\u00e1 se objev\u00ed n\u00e1sleduj\u00edc\u00edm zp\u016fsobem:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/f4d668075885bb66ce0158588bff038c.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><strong>Nejlep\u0161\u00ed zpracov\u00e1n\u00ed nezachycen\u00fdch chyb (renderov\u00e1n\u00ed)<\/strong><\/p>\n<p><\/p>\n<blockquote><p>\u00davod do hranic chyb<\/p>\n<p>Chyba JavaScriptu v \u010d\u00e1sti u\u017eivatelsk\u00e9ho rozhran\u00ed by nem\u011bla naru\u0161it chod cel\u00e9 aplikace. Aby se tento probl\u00e9m vy\u0159e\u0161il pro u\u017eivatele Reactu, zav\u00e1d\u00ed React 16 nov\u00fd pojem \"hranice chyb\".<\/p>\n<p>Hranice chyb jsou komponenty Reactu, kter\u00e9 zachycuj\u00ed chyby JavaScriptu kdekoli ve sv\u00e9m podstromu komponent, registruj\u00ed tyto chyby a zobrazuj\u00ed z\u00e1lo\u017en\u00ed u\u017eivatelsk\u00e9 rozhran\u00ed nam\u00edsto rozpadl\u00e9ho stromu komponent. Hranice chyb zachycuj\u00ed chyby b\u011bhem renderov\u00e1n\u00ed, v metod\u00e1ch \u017eivotn\u00edho cyklu a v konstruktoru cel\u00e9ho stromu pod nimi.<\/p>\n<p>\u2026<\/p>\n<p>Nov\u00e9 chov\u00e1n\u00ed pro nezachycen\u00e9 chyby<\/p>\n<p>Tato zm\u011bna je d\u016fle\u017eit\u00e1. Od Reactu 16 chyby, kter\u00e9 nebyly zachyceny \u017e\u00e1dnou hranic\u00ed chyb, povedou k odmontov\u00e1n\u00ed cel\u00e9ho stromu komponent Reactu.<\/p>\n<p>\u2014 <em>Dan Abramov \u2014<\/em> <noindex><a rel=\"nofollow\" href=\"https:\/\/reactjs.org\/blog\/2017\/07\/26\/error-handling-in-react-16.html\"><em>Zpracov\u00e1n\u00ed chyb v Reactu 16<\/em><\/a><\/noindex><\/p><\/blockquote>\n<p>D\u016fle\u017eit\u00e9 up\u0159esn\u011bn\u00ed, kter\u00e9 mi n\u011bjakou dobu trvalo, ne\u017e jsem to pochopil, je, \u017ee <strong>v\u00fd\u0161e uveden\u00e9 chov\u00e1n\u00ed funguje pouze s chybami generovan\u00fdmi v metod\u011b renderov\u00e1n\u00ed (nebo, co je pravd\u011bpodobn\u011bj\u0161\u00ed, v jak\u00e9koli z metod \u017eivotn\u00edho cyklu)<\/strong>. Nap\u0159\u00edklad pou\u017eit\u00ed hranic chyb by nebylo u\u017eite\u010dn\u00e9 s na\u0161\u00edm tla\u010d\u00edtkem <em>Chyba<\/em>; tato chyba byla v obslu\u017en\u00e9 rutinn\u011b kliknut\u00ed.<\/p>\n<p><\/p>\n<p>Vytvo\u0159me p\u0159\u00edklad chyby p\u0159i renderov\u00e1n\u00ed a pot\u00e9 pou\u017eijeme hranice chyb pro elegantn\u011bj\u0161\u00ed zpracov\u00e1n\u00ed chyby.<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ MyRenderError<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">import React, { Component } from &#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          Chyba renderov&aacute;n&iacute;\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>Pozorov\u00e1n\u00ed:<\/p>\n<p><\/p>\n<ul>\n<li>\n<p>P\u0159i stisknut\u00ed tla\u010d\u00edtka, <em>React<\/em> se zobraz\u00ed <em>flag.busted.bogus<\/em>, kter\u00e1 generuje chybu<\/p>\n<p>\n<\/li>\n<li>\n<p>Bez hranice chyb se cel\u00fd strom komponent odmontuje<\/p>\n<p>\n<\/li>\n<\/ul>\n<p><\/p>\n<p>Pak nap\u00ed\u0161eme n\u00e1\u0161 k\u00f3d hranice chyb (pou\u017e\u00edv\u00e1 novou metodu \u017eivotn\u00edho cyklu <em>componentDidCatch<\/em>); to je vlastn\u011b p\u0159\u00edklad uveden\u00fd v \u010dl\u00e1nku Dana Abramova:<\/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;N\u011bco se pokazilo.&lt;\/h1&gt;;\n    }\n    return this.props.children;\n  }\n}<\/code><\/pre>\n<p><\/p>\n<p>Nakonec pou\u017eijeme tuto komponentu:<\/p>\n<p><\/p>\n<p><em>react-app \/ src \/ App.js<\/em><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">... import MyRenderError from &#039;.\/MyRenderError&#039;; class App extends Component { render() { 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>P\u0159i tom stisknut\u00ed tla\u010d\u00edtka Render Error zobraz\u00ed z\u00e1lo\u017en\u00ed u\u017eivatelsk\u00e9 rozhran\u00ed a hl\u00e1s\u00ed chybu Sentry.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Sentry vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch 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 vzd\u00e1len\u00fd monitoring chyb ve front-end aplikac\u00edch React\" src=\"\/wp-content\/uploads\/2020\/07\/58183f6f6aef124e8d14acaaf7e0d4fe.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><strong>Z\u00e1v\u011br<\/strong><\/p>\n<p><\/p>\n<p>Douf\u00e1m, \u017ee to pro v\u00e1s bylo u\u017eite\u010dn\u00e9.<\/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\">Odkaz na origin\u00e1l<\/a><\/noindex> <\/p>\n<p><\/p>\n<p>P.S. Telegramov\u00e1 chatovac\u00ed m\u00edstnost o Sentry <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/sentry_ru\">https:\/\/t.me\/sentry_ru<\/a><\/noindex><\/p>\n<p>Zdroj: <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.3 - 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\/cs\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"cs_CZ\" \/>\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\/cs\/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 vzd\u00e1len\u00e9 monitorov\u00e1n\u00ed chyb v frontendov\u00fdch aplikac\u00edch React | ProHoster","description":"Studujeme pou\u017eit\u00ed Sentry s React.","canonical_url":"https:\/\/prohoster.info\/cs\/blog\/administrirovanie\/sentry-udalennyj-monitoring-bagov-v-frontend-prilozheniyah-react","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"cs_CZ","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\/cs\/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\/cs\/wp-json\/wp\/v2\/posts\/87208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/comments?post=87208"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/87208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media\/87209"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media?parent=87208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/categories?post=87208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/tags?post=87208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}