opbeat / opbeat-react Goto Github PK
View Code? Open in Web Editor NEWOfficial Opbeat module for React apps
Home Page: https://opbeat.com/react
License: MIT License
Official Opbeat module for React apps
Home Page: https://opbeat.com/react
License: MIT License
Integration with a React 0.16 app currently crashes the app.
Bring back this
using react 15.6, we got this error logged into our dashboard
Type QuotaExceededError
Value The quota has been exceeded.
Location --
Occurred (UTC)
This was found in conjunction attempting to log into our app, got an error, and received a WSOD
I've found this issue opbeat/opbeat-angular#5 and thought that perhaps it was related but caused within this package.
Is this in anyway related?
Care to explain where this is coming from?
{
"error_message": "Unable to validate data.",
"structured_error": {
"http": {
"url": "must be the full URL, including scheme and host: got file:///var/containers/Bundle/Application/495CFDD5-3A8C-4D64-AF85-DFBBDA4B4FF4/my.app/www/index.html/#/settings"
}
},
"status": 400
}
File URLs should be supported, IMO.
Worst case: Is it possible to override the URL before sending it to the Opbeat API?
Hi guys, just wondering if this has SSR support?
Thanks!
Using opbeat-react client side introduce a 30 kB gzipped overhead in our bundle.
I fear it's a blocker for us, especially for a performance analytic tool. It's about the size of react-dom, which is already large.
Do you have any plan for reducing the size of the library?
Hi, guys!
If I use react-router v4, what should I do?
When you provide the support of React Router v4 and React 16?
Thanks!
Followed the instructions and things are working for me locally. On the production site, however, they're not. Are there any babelrc or webpack settings that may cause opbeat not to work in production?
I've set up Opbeat on my react app, and data is being collected, but in the list of Routes there's only one: Unknown
.
I use the following libraries:
The setup is something like this:
main.jsx:
import initOpbeat from 'opbeat-react';
import MainContainer from './components/mainContainer';
import React from 'react';
import {render} from 'react-dom';
import {wrapRouter} from 'opbeat-react';
import {BrowserRouter as Router} from 'react-router-dom';
import {Route} from 'react-router-dom';
const OpbeatRouter = wrapRouter(Router);
initOpbeat({
orgId: 'xyz',
appId: 'abc'
});
render(
(
<div className="wrapper ptl">
<OpbeatRouter basename="/sende/beta/">
<Route component={MainContainer}/>
</OpbeatRouter>
</div>
),
document.getElementById('app-root')
);
mainContainer.jsx:
import React from 'react';
import {Route} from 'react-router-dom';
import SomeComponent from './someComponent';
import AnotherComponent from './anotherComponent';
class MainContainer extends React.Component {
render() {
return (
<div className="container">
<Route path="/" exact render={(props) => (
<SomeComponent {...props}/>
)}/>
<Route path="/another" exact render={(props) => (
<AnotherComponent {...props} />
)}/>
<Footer/>
</div>
);
}
}
The below code does not properly handle the case when msg
is an ErrorEvent
.
Console Error:
Uncaught TypeError: exception.message.indexOf is not a function.
Thrown here:
var exception = {
'message': error ? error.message : msg,
'type': error ? error.name : null,
'fileurl': file || null,
'lineno': line || null,
'colno': col || null,
'extra': extraContext
}
if (!exception.type) {
// Try to extract type from message formatted like 'ReferenceError: Can't find variable: initHighlighting'
if (exception.message.indexOf(':') > -1) {
exception.type = exception.message.split(':')[0]
}
}
Code Generating the error in react component:
throwError = () => {
throw new Error();
}
I'm setting up Opbeat with my React app and get a console warning when I patch my router using wrapRouter
per the setup instructions:
Warning: [react-router] `Router` no longer defaults the history prop to hash history. Please use the `hashHistory` singleton instead.
React also fails to render anything when using the wrapped router.
I'm using browserHistory
; here is my relevant code (initOpbeat
is called earlier, from a separate initializers file):
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import DashboardRoutes from './DashboardRoutes';
import store from './RootStore';
import { wrapRouter } from 'opbeat-react';
import { Router, browserHistory } from 'react-router';
const OpbeatRouter = wrapRouter(Router);
export default class Root extends Component {
render() {
return (
<Provider store={store}>
<OpbeatRouter history={browserHistory}>{DashboardRoutes}</OpbeatRouter>
</Provider>
);
}
}
Any guidance on this would be appreciated. I'm using react-router 2.8.1.
To reproduce, a add throw new Error('test')
in a jsx file and it won't appear in the console
Culprit code appears to be here:
ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
try {
return fn();
} finally {
ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.