offer a `LenientParser` option with metrics-lib
Provide another parser option, quote from #19170 (moved)#comment:7
make use of the descriptor.parser
and descriptor.reader
properties and supply a different non-ascci-accepting parser, let's call it LenientParser
, as well as a LenientReader.
- Necessary change in CollecTor would be to set the
descriptor.parser
anddescriptor.reader
properties to the LenientParser class. - Necessary change in metrics-lib would be the addition of the LenientParser, which consist mostly in providing additional ParserHelper methods that accept non-ascii and calling these in the appropriate places; most of the code will be the same as in the current, stricter implementation. Also a LenientReader would have to be supplied.
That way we could switch between implementations. Users of metrics-lib would also have another option.