All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
1.11.1 - 2022-08-30
- Update dependencies (#40).
1.11.0 - 2021-12-15
- Update dependencies (#39).
- The wrapped
http.ResponseWriter
no longer implementshttp.CloseNotifier
(#39).
1.10.0 - 2020-01-24
- Getter for requestIDHeader (#35).
- Sleep for some seconds after signal handler receives a signal (#37).
1.9.0 - 2019-09-24
- HTTPServer: add support for HTTP/2 request handling (#27, #32).
- HTTPServer: fix remote IP access logging (#31).
1.8.1 - 2018-10-21
- Remove dependency on
github.com/spf13/cobra
.
1.8.0 - 2018-10-21
- Support for users of github.com/spf13/cobra and its friends (#24).
1.7.0 - 2018-10-20
- Use http.Server.Shutdown for Go 1.8+ (#23).
- Rename the project from
cmd
towell
. - Remove dependency on
github.com/pkg/errors
.
1.6.0 - 2018-09-14
- Opt in to Go modules.
1.5.0 - 2017-04-28
IsSystemdService
to detect if running as a systemd service.
- Ignore SIGPIPE for systemd, reverts #15 (#17).
1.4.2 - 2017-04-26
- Exit abnormally upon SIGPIPE (#15).
1.4.1 - 2017-03-01
- Fix
NewEnvironment
documentation. - Ignore SIGPIPE for systemd (#13).
1.4.0 - 2016-09-10
BackgroundWithID
creates a new context inheriting the request ID.Graceful
for Windows to make porting easy, though it does not restart.
- Fix Windows support by @mattn.
- Fix a subtle data race in
Graceful
.
1.3.0 - 2016-09-02
GoWithID
starts a goroutine with a new request tracking ID.
Go
no longer issues new ID automatically. UseGoWithID
instead.
1.2.0 - 2016-08-31
Graceful
for network servers to implement graceful restart.SystemdListeners
returns[]net.Listener
for systemd socket activation.
- Optimize
IDGenerator
performance. Server.Handler
closes connection.- Lower
Environment.Wait
log to debug level.
1.1.0 - 2016-08-24
IDGenerator
generates UUID-like ID string for request tracking.Go
issues new request tracking ID and store it in the derived context.HTTPClient
, a wrapper forhttp.Client
that exports request tracking ID and logs results.LogCmd
, a wrapper forexec.Cmd
that records command execution results together with request tracking ID.
HTTPServer
adds or imports request tracking ID for every request.Server
adds request tracking ID for each new connection.- Install signal handler only for the global environment.
Context
method ofEnvironment
is removed. It was a design flaw.
1.0.1 - 2016-08-22
- Update docs.
- Use cybozu-go/netutil.
- Conform to cybozu-go/log v1.1.0 spec.