Skip to content

Commit f00e73a

Browse files
committed
Add more debugging to ot operations
1 parent c053f50 commit f00e73a

File tree

1 file changed

+10
-0
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+10
-0
lines changed

packages/app/src/app/overmind/effects/live/clients.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { logBreadcrumb } from '@codesandbox/common/lib/utils/analytics/sentry';
12
import { OTClient } from './ot/client';
23

34
export type SendOperation = (
@@ -42,6 +43,15 @@ class CodeSandboxOTClient extends OTClient {
4243
sendOperation(revision, operation) {
4344
this.onSendOperation(revision, operationToElixir(operation.toJSON())).then(
4445
() => {
46+
logBreadcrumb({
47+
type: 'ot',
48+
message: `Acknowledging ${JSON.stringify({
49+
moduleShortid: this.moduleShortid,
50+
revision,
51+
operation,
52+
})}`,
53+
});
54+
4555
this.serverAck();
4656
}
4757
);

0 commit comments

Comments
 (0)