File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
app/src/app/overmind/namespaces/editor
common/src/utils/analytics Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import history from 'app/utils/history';
3333import { Selection , TextOperation } from 'ot' ;
3434import { json } from 'overmind' ;
3535
36+ import { logBreadcrumb } from '@codesandbox/common/lib/utils/analytics/sentry' ;
3637import eventToTransform from '../../utils/event-to-transform' ;
3738import { SERVER } from '../../utils/items' ;
3839import * as internalActions from './internalActions' ;
@@ -361,6 +362,13 @@ export const codeChanged: Action<{
361362 if ( state . live . isLive && module . code !== code ) {
362363 let operation : TextOperation ;
363364 if ( event ) {
365+ logBreadcrumb ( {
366+ category : 'ot' ,
367+ message : `Change Event ${ JSON . stringify ( {
368+ moduleShortid : this . moduleShortid ,
369+ event,
370+ } ) } `,
371+ } ) ;
364372 operation = eventToTransform ( event , module . code ) . operation ;
365373 } else {
366374 operation = getTextOperation ( module . code , code ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export async function initialize(dsn: string) {
5454 "undefined is not an object (evaluating 'window.__pad.performLoop')" , // Only happens on Safari, but spams our servers. Doesn't break anything
5555 ] ,
5656 whitelistUrls : [ / h t t p s ? : \/ \/ ( ( u p l o a d s | w w w ) \. ) ? c o d e s a n d b o x \. i o / ] ,
57- maxBreadcrumbs : 90 ,
57+ maxBreadcrumbs : 100 ,
5858 /**
5959 * Don't send messages from the sandbox, so don't send from eg.
6060 * new.codesandbox.io or new.csb.app
You can’t perform that action at this time.
0 commit comments