change: update docs

This commit is contained in:
debugtalk
2022-01-19 15:03:04 +08:00
parent 1843d4c096
commit 6fa8fd52d2
2 changed files with 8 additions and 5 deletions

View File

@@ -1,8 +1,11 @@
# Release History
## v0.5.2 (2022-01-16)
## v0.5.2 (2022-01-19)
- feat: support creating and calling custom functions with [hashicorp/go-plugin](https://github.com/hashicorp/go-plugin)
- feat: add scaffold demo with hashicorp plugin
- feat: report events for initializing plugin
- fix: log failures when the assertion failed
## v0.5.1 (2022-01-13)

View File

@@ -66,7 +66,7 @@ func (s *requestStats) logTransaction(name string, success bool, responseTime in
s.transactionPassed++
} else {
s.transactionFailed++
s.get(name, "transaction").logError("")
s.get(name, "transaction").logFailures()
}
s.get(name, "transaction").log(responseTime, contentLength)
}
@@ -77,8 +77,8 @@ func (s *requestStats) logRequest(method, name string, responseTime int64, conte
}
func (s *requestStats) logError(method, name, err string) {
s.total.logError(err)
s.get(name, method).logError(err)
s.total.logFailures()
s.get(name, method).logFailures()
// store error in errors map
key := genMD5(method, name, err)
@@ -264,7 +264,7 @@ func (s *statsEntry) logResponseTime(responseTime int64) {
}
}
func (s *statsEntry) logError(err string) {
func (s *statsEntry) logFailures() {
s.NumFailures++
key := time.Now().Unix()
_, ok := s.NumFailPerSec[key]