diff --git a/.env b/.env index 0e0ddd39bf..aa15019c05 100644 --- a/.env +++ b/.env @@ -43,3 +43,4 @@ LOGIN_DT_LOGO= SIDEBAR_DT_LOGO= USE_V2= ENABLE_EXTERNAL_ARGO_CD=false +LOG_TERMINAL_EVENTS_TO_SENTRY=false diff --git a/src/components/ClusterNodes/ClusterTerminal.tsx b/src/components/ClusterNodes/ClusterTerminal.tsx index 55a63c3cc4..8c9c8a9e00 100644 --- a/src/components/ClusterNodes/ClusterTerminal.tsx +++ b/src/components/ClusterNodes/ClusterTerminal.tsx @@ -344,7 +344,7 @@ export default function ClusterTerminal({ `user/terminal/get?namespace=${selectedNamespace.value}&shellName=${ selectedTerminalType.value }&terminalAccessId=${terminalAccessIdRef.current}&containerName=${ - resourceData.containers?.[0].containerName || '' + resourceData?.containers?.[0].containerName || '' }`, terminalAccessIdRef.current, window?._env_?.CLUSTER_TERMINAL_CONNECTION_RETRY_COUNT || 7, diff --git a/src/components/terminal/TerminalWrapper.tsx b/src/components/terminal/TerminalWrapper.tsx index c2187d8949..b1c382fc2a 100644 --- a/src/components/terminal/TerminalWrapper.tsx +++ b/src/components/terminal/TerminalWrapper.tsx @@ -12,6 +12,8 @@ import { AppDetails } from '../app/types' import './terminal.scss' import { Scroller } from '../app/details/cicdHistory/History.components' import { SocketConnectionType } from '../app/details/appDetails/appDetails.type' +import { logExceptionToSentry } from '@devtron-labs/devtron-fe-common-lib' + interface TerminalViewProps { appDetails: AppDetails @@ -270,6 +272,7 @@ export class TerminalView extends Component