Releases: unionj-cloud/go-doudou
Releases · unionj-cloud/go-doudou
v0.9.1 Circuitbreaker/Timeout/Retry/Prometheus
- Add Circuitbreaker/Timeout/Retry support (including metrics for Prometheus)
- Add custom Prometheus service discovery for go-doudou services
v0.9.0 RateLimit and Bulkhead
- Add rate limit support
- Add bulkhead pattern support
v0.8.9 cors
Add http.MethodOptions to support cors
v0.8.8 net.DNSError
Properly Handle no such host error from memberlist
v0.8.7 ddhttp.Tracing
- Add Tracing middleware to ddhttp package to make tracing usage more flexible. If you need to use it, please make sure to add it as earlier as possible. etc.:
srv.AddMiddleware(ddhttp.Tracing, ddhttp.Metrics, requestid.RequestIDHandler, handlers.CompressHandler, handlers.ProxyHeaders, ddhttp.Logger, ddhttp.Rest, ddhttp.Recover)
- Refactered ddhttp Logger middleware to add opentracing span field to ddhttp.HttpLog struct
- Fix ddhttp Logger middleware bug in order to print key/value pairs from multipart/form-data request (but ignore uploaded file binary) . etc.:
DEBU[2021-12-30 12:17:03] {
"clientIp": "[::1]:53489",
"httpMethod": "POST",
"uri": "/upload/avatar",
"proto": "HTTP/1.1",
"host": "localhost:6061",
"reqContentLength": 199769,
"reqHeader": {
"Accept": [
"*/*"
],
"Cache-Control": [
"no-cache"
],
"Connection": [
"keep-alive"
],
"Content-Length": [
"199769"
],
"Content-Type": [
"multipart/form-data; boundary=--------------------------631217490048140198896124"
],
"User-Agent": [
"PostmanRuntime/7.28.3"
],
"X-Request-Id": [
"5d1816f2-439e-412d-aa65-fd963baa5863"
]
},
"requestId": "5d1816f2-439e-412d-aa65-fd963baa5863",
"rawReq": "ps=laborum",
"respBody": "{\"ri\":0,\"rs\":\"OK\"}\n",
"statusCode": 200,
"respHeader": {
"Content-Type": [
"application/json; charset=UTF-8"
]
},
"respContentLength": 19,
"elapsedTime": "3.89µs",
"span": "33238964ec22e157:33238964ec22e157:0000000000000000:1"
}
v0.8.6 minor improvement
v0.8.6
v0.8.5 Jaeger
Add Jaeger support
v0.8.4 Close method for v3.FileModel
Add Close method to v3.FileModel struct for releasing the resouce
v0.8.3 retry
Add client side retry feature. If one node cannot process requests, retry another node.