<#7473 fix(flytestdlib): initialize metrics scope ...
# flyte-github
a
#7473 fix(flytestdlib): initialize metrics scope and expose /metrics endpoi… Pull request opened by vic-comm Resolves the missing /metrics endpoint in the v2 app framework. Initializes sc.Scope = promutils.NewScope(a.Name) prior to calling a.Setup(...) to prevent nil pointer exceptions in standalone binaries. (Respects existing scopes if already initialized by the unified manager). Mounts promhttp.Handler() at /metrics alongside the existing health checks. Includes a unit test asserting scope initialization and a 200 OK from the metrics endpoint. Fixes: #7446 flyteorg/flyte