Ignore errors with missing Sentry Transaction
Fix CODEOCEAN-FRONTEND-1D
This commit is contained in:
@ -23,7 +23,7 @@ CodeOceanEditorWebsocket = {
|
||||
const cleanedPath = url.replace(/\/\d+\//, '/*/').replace(/\/[^\/]+$/, '/*');
|
||||
const websocketHost = window.location.origin.replace(/^http/, 'ws');
|
||||
const sentryDescription = `WebSocket ${websocketHost}${cleanedPath}`;
|
||||
const span = this.sentryTransaction.startChild({op: 'websocket.client', description: sentryDescription})
|
||||
const span = this.sentryTransaction?.startChild({op: 'websocket.client', description: sentryDescription})
|
||||
this.websocket = new CommandSocket(this.createSocketUrl(url, span),
|
||||
function (evt) {
|
||||
this.resetOutputTab();
|
||||
|
Reference in New Issue
Block a user