initial spike

This commit is contained in:
James Salter 2021-08-11 16:11:10 +01:00
parent c93cc89cca
commit de398f46f4
7 changed files with 134 additions and 1 deletions

View file

@ -108,6 +108,7 @@ import SoftLogout from './auth/SoftLogout';
import { makeRoomPermalink } from "../../utils/permalinks/Permalinks";
import { copyPlaintext } from "../../utils/strings";
import { PosthogAnalytics } from '../../PosthogAnalytics';
import {initSentry, sendSentryReport} from "../../sentry";
/** constants for MatrixChat.state.view */
export enum Views {
@ -393,6 +394,16 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
PosthogAnalytics.instance.updatePlatformSuperProperties();
CountlyAnalytics.instance.enable(/* anonymous = */ true);
initSentry(SdkConfig.get()["sentry"]);
setTimeout(() => {
try {
const e = new Error("whoops");
throw(e);
} catch (e) {
sendSentryReport("user text", "label", e);
}
}, 4000);
}
private async postLoginSetup() {