jzelinskie / cobrautil

A collection of utility functions when using Cobra.
https://github.com/jzelinskie/cobrautil
Apache License 2.0
5 stars 10 forks source link

cobrautil v2 #19

Closed vroldanbet closed 2 years ago

vroldanbet commented 2 years ago

Closes https://github.com/jzelinskie/cobrautil/issues/17

Main design choices

Zerolog

The main problems is v1 didn't offer any API to have cobrautil consumers adjust how the logger was configured. This is important as zerolog provides a vast API with many knobs to tweak.

See how it's used in https://github.com/authzed/spicedb/pull/844/files#diff-df0635588ca5d6a577487faacc185c3838a3fe2b321660c36372541797c54c74R59-R67

OTel

HTTP

gRPC