1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +01:00

chore: export default metrics register (#10989)

https://linear.app/unleash/issue/2-4035/avoid-prom-client-dependency-in-enterprise-cloud

This exports the default metrics register so consumers can tap into it
if needed.
This commit is contained in:
Nuno Góis 2025-11-17 13:40:13 +00:00 committed by GitHub
parent 7fdc0df9f2
commit f06eabf7e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,6 +190,7 @@ import ProjectStore from './features/project/project-store.js';
import type { ReleasePlanMilestoneWriteModel } from './features/release-plans/release-plan-milestone.js';
import { FakeChangeRequestAccessReadModel } from './features/change-request-access-service/fake-change-request-access-read-model.js';
import { fakeImpactMetricsResolver } from '../test/fixtures/fake-impact-metrics.js';
import { register as defaultMetricsRegister } from 'prom-client';
export async function initialServiceSetup(
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
@ -503,6 +504,7 @@ export {
impactRegister,
EnvironmentStore,
ProjectStore,
defaultMetricsRegister,
};
export type {