SERVER-138333ClosedDuplicate
Registration codegen: per-file MONGO_INITIALIZER metrics registration
h2. Overview Build the registration codegen for the unified metrics framework (epic SPM-4962). Design revised 2026-11-11: registration is a per-file MONGO_INITIALIZER with no aggregate anchor. h2. Scope of Work * Emit one MONGO_INITIALIZER per *_metrics.idl file into the generated _gen.cpp, named RegisterMetrics_<file_path_underscores>, whose body calls addMetricsRegistration(MetricsRegistrationSpec{parent, name, resolve, leaves, appender, otel}) directly. No wrapper registration function, no