SERVER-135008ClosedFixed
Statistics cursor plumbing for OTel types
Extend WiredTigerUtil with a collector that returns (statName, value) pairs rather than BSON. A lot of the code from exportTableToBSON can be reused, but we don’t want to return a nested BSON. Right now there exists some work around code that basically hard codes to remove it out of the BSON see [here|https://github.com/10gen/mongo/blob/9e3f5fd07a50ae889ba217f94dfba07518e8dfba/src/mongo/otel/metrics/instrumentation/wiredtiger_metrics.cpp#L275]. This will hopefully be deprecated.