Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
change: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Jan 19, 2022
1 parent 41cad91 commit 938a01e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
8 changes: 4 additions & 4 deletions internal/boomer/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 938a01e

Please sign in to comment.