(name string, d time.Duration)
| 663 | } |
| 664 | |
| 665 | func statsValue(name string, d time.Duration) string { |
| 666 | durationInMs := strconv.FormatFloat(float64(d)/float64(time.Millisecond), 'f', -1, 64) |
| 667 | return name + ";dur=" + durationInMs |
| 668 | } |
| 669 | |
| 670 | // getStatusCodeFromError extracts http status code based on error, similar to how writeError was implemented. |
| 671 | func getStatusCodeFromError(err error) int { |
no outgoing calls
no test coverage detected