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.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.