Go 1.17 introduced a new handy API for setting env vars scoped for
a single test so we can avoid the hard to read set and reset env
loops.
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
* Use zapdriver config as base zap config
Changes the encoding of the timestamp, severity, and message fields to
be parseable by Stackdriver.
* Wrap zap core with zapdriver core
Automatically adds labels and source location to log messages.
* source stats reporter... should be used by well-behaved sources
* public fields
* moving serialization/deserialization of metrics and logging maps to pkg
* nits
* adding UT
* same order
* updates
* sock-puppet
* unregistration problem?
* removing base64 encoding
* removing TODO
* comments after review
* removing the other constants
* Logging config pares all components, rather than just a list passed in.
* Simplify the prefix checking logic.
* PR comment - ignore empty string.
* Unit test.