complete
sample added.grpc
package added withgrpc.Server
.retry
package added.- Protobuf support:
setup-dev
target installsbuf
.make generate-proto
generates all proto files.make lint-proto
lints all proto files.
http.Server
adds new methodAddress
to get the address the server is listening on.status
updates:- New errors
ErrServerError
andErrClientError
. HTTPError
function to map a response status code and error to a Go error.
- New errors
- Other enhancements:
make roll-version
updates the version number inversion.go
and adds a new entry to the changelog.
- Main
README.md
is enhanced with links to package documentation.
metrics.MetricsOptions
fieldServer
is now a function instead of a*http.Server
.SetupHTTP
hook now acceptsopts ...http.ServerOption
to configure the server.
config.NewBool
,config.NewInt
, andconfig.NewString
now properly check for conflicting variables of other types, not just their own type.
- Bug fix:
http.WithPanicAndErrorLogging
was installing the middleware in the wrong order, causing error logging of panics to not be effective.
- Semantics of
Cleanup
have been changed. It can now be called multiple times to register multiple cleanup functions. The cleanup functions are called in the reverse order in which they were registered. Cleanup functions can no longer return errors.
- Added
PanicMiddleware
tohttp
package.
- Dependency upgrades
- The
ConfigSetup
hook has been renamed toSetupConfig
. This is a breaking change. To upgrade, callSetupConfig
instead ofConfigSetup
in your application. - New
Level
andSetLevel
methods forlogging.Logger
. - New
WithLevel
option forlogging.New
.
- New
PreRun
hook can be used to register a function to run immediately before worker start. - The
Setup
hook has been renamed toSetupWorkers
. This is a breaking change. To upgrade, callSetupWorkers
instead ofSetup
in your application.
- Mu now has a CODE_OF_CONDUCT.md and CONTRIBUTING.md.
- OpenTelemetry tracing via
WithOpenTelemetryTracing
http.ServerOption. - TLS support via
WithTLS
http.ServerOption.
-
Metrics improvements
-
Lots more tests
-
Bug fixes:
http.ErrorLoggingMiddleware
now correctly logs the error.- Fixes to
Run
method ofhttp.Server
.
- Prometheus metrics
- Add SetupHTTP hook.
- Improve release process
- Starting documentation
- README.md updates
- Rename pr.yaml workflow to cicd.yaml
- Fix a bug in version tagging
This is the first alpha release of mu
.