1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

chore: remove impact metrics scrape endpoint guard (#10300)

This commit is contained in:
Mateusz Kwasniewski 2025-07-03 12:05:38 +02:00 committed by GitHub
parent 2dc7cbaa31
commit 4dc73dd7f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,15 +43,13 @@ class BackstageController extends Controller {
res.end(metricsOutput);
});
if (this.flagResolver.isEnabled('impactMetrics')) {
this.get('/impact/metrics', async (req, res) => {
res.set('Content-Type', impactRegister.contentType);
this.get('/impact/metrics', async (req, res) => {
res.set('Content-Type', impactRegister.contentType);
const metricsOutput = await impactRegister.metrics();
const metricsOutput = await impactRegister.metrics();
res.end(metricsOutput);
});
}
res.end(metricsOutput);
});
}
if (config.server.enableHeapSnapshotEnpoint) {