Skip to content

Commit b1af1e0

Browse files
author
rhamlett_microsoft
committed
Remove "Azure Mode" from crash simulator
1 parent d1b0961 commit b1af1e0

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

src/PerfProblemSimulator/wwwroot/index.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,9 @@ <h3>💥 Application Crash</h3>
206206
<label>Delay (s):
207207
<input type="number" id="crashDelay" value="0" min="0" max="60">
208208
</label>
209-
<label class="checkbox-label" title="Crash during request (required for Azure Crash Monitoring to capture dumps)">
210-
<input type="checkbox" id="crashSynchronous" checked>
211-
Azure Mode (sync)
212-
</label>
213209
</div>
214210
<button class="btn btn-crash" id="btnTriggerCrash">💀 Trigger Crash</button>
215211
<p class="crash-warning">⚠️ This will TERMINATE the application! Azure will auto-restart.</p>
216-
<p class="crash-info">💡 Keep "Azure Mode" checked for crash dumps to be captured by Azure Crash Monitoring.</p>
217212
</div>
218213
</section>
219214
</main>

src/PerfProblemSimulator/wwwroot/js/dashboard.js

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -753,21 +753,14 @@ async function triggerThreadBlock() {
753753
async function triggerCrash() {
754754
const crashType = document.getElementById('crashType').value;
755755
const delaySeconds = parseInt(document.getElementById('crashDelay').value) || 0;
756-
const synchronous = document.getElementById('crashSynchronous').checked;
757-
758-
// Confirmation dialog
759-
const modeText = synchronous
760-
? "SYNCHRONOUS (Azure Mode) - No response will be received"
761-
: `ASYNC - Response sent, crash in ${delaySeconds}s`;
762756

757+
// Confirmation dialog - always synchronous for Azure Crash Monitoring
763758
const confirmed = confirm(
764759
`⚠️ WARNING: This will CRASH the application!\n\n` +
765760
`Crash Type: ${crashType}\n` +
766-
`Mode: ${modeText}\n\n` +
761+
`Delay: ${delaySeconds} seconds\n\n` +
767762
`The application will terminate and Azure will auto-restart it.\n` +
768-
(synchronous
769-
? `✓ Azure Crash Monitoring WILL capture this crash.\n`
770-
: `⚠️ Azure Crash Monitoring may NOT capture this crash (async mode).\n`) +
763+
`✓ Azure Crash Monitoring will capture this crash.\n` +
771764
`\nAre you sure you want to proceed?`
772765
);
773766

@@ -777,19 +770,15 @@ async function triggerCrash() {
777770
}
778771

779772
try {
780-
if (synchronous) {
781-
logEvent('danger', `💥 SYNCHRONOUS CRASH: ${crashType} - Connection will be lost!`);
782-
} else {
783-
logEvent('warning', `💥 CRASH TRIGGERED: ${crashType} in ${delaySeconds}s...`);
784-
}
773+
logEvent('danger', `💥 CRASH: ${crashType}${delaySeconds > 0 ? ` in ${delaySeconds}s` : ''} - Connection will be lost!`);
785774

786775
const response = await fetch(`${CONFIG.apiBaseUrl}/crash/trigger`, {
787776
method: 'POST',
788777
headers: { 'Content-Type': 'application/json' },
789778
body: JSON.stringify({
790779
crashType: crashType,
791-
delaySeconds: synchronous ? 0 : delaySeconds,
792-
synchronous: synchronous,
780+
delaySeconds: delaySeconds,
781+
synchronous: true,
793782
message: `Crash triggered from dashboard at ${new Date().toISOString()}`
794783
})
795784
});

0 commit comments

Comments
 (0)