📈 ajoute les actions redux aux breadcrumb de sentry

pull/325/head
Johan Girod 2018-08-30 11:30:33 +02:00
parent 60a49a1c93
commit cb7b94ae27
4 changed files with 13 additions and 2 deletions

View File

@ -115,7 +115,6 @@
</div>
<div id="js" />
<script src="https://use.fontawesome.com/1da10bbdec.js"></script>
<script src="https://cdn.ravenjs.com/3.19.1/raven.min.js" crossorigin="anonymous"></script>
<script type="text/javascript">
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
// For ie, polyfill everything, as I can't figure what's going on, and which polyfill is missing...

View File

@ -23,6 +23,8 @@
"marked": "^0.3.17",
"nearley": "^2.13.0",
"ramda": "^0.25.0",
"raven-for-redux": "^1.3.1",
"raven-js": "^3.26.4",
"rc-progress": "^2.2.5",
"react": "^16.3.1",
"react-addons-css-transition-group": "^15.6.2",

View File

@ -2,6 +2,8 @@ import SetCSSColour from 'Components/utils/SetCssColour'
import { defaultTracker, TrackerProvider } from 'Components/utils/withTracker'
import createHistory from 'history/createBrowserHistory'
import i18next from 'i18next'
import createRavenMiddleware from 'raven-for-redux'
import Raven from 'raven-js'
import React, { PureComponent } from 'react'
import { I18nextProvider } from 'react-i18next'
import { Provider } from 'react-redux'
@ -15,7 +17,6 @@ import ReactPiwik from './Tracker'
import { getIframeOption, inIframe } from './utils'
if (process.env.NODE_ENV === 'production') {
// eslint-disable-next-line no-undef
Raven.config(
'https://9051375f856646d694943532caf2b45f@sentry.data.gouv.fr/18'
).install()
@ -74,6 +75,7 @@ export default class Layout extends PureComponent {
applyMiddleware(
// Allows us to painlessly do route transition in action creators
thunk.withExtraArgument(this.history),
createRavenMiddleware(Raven),
trackDomainActions(tracker)
)
)

View File

@ -6491,6 +6491,14 @@ range-parser@^1.0.3, range-parser@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
raven-for-redux@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/raven-for-redux/-/raven-for-redux-1.3.1.tgz#865f0056ec1706073c1b3a33164640453ed4fed2"
raven-js@^3.26.4:
version "3.26.4"
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.26.4.tgz#32aae3a63a9314467a453c94c89a364ea43707be"
rc-progress@^2.2.5:
version "2.2.5"
resolved "https://registry.yarnpkg.com/rc-progress/-/rc-progress-2.2.5.tgz#e61d0544bf9d4208e5ba32fc50962159e7f952a3"