diff --git a/CHANGELOG.md b/CHANGELOG.md index 760d012..7a680af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.1] - 2023-11-06 + +### Added + +- Bugfix for #59 + ## [0.5.0] - 2023-10-11 ### Added diff --git a/README.md b/README.md index 71e9c57..6d6c7cc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Minigun -[![Minigun Version](https://img.shields.io/badge/Minigun-0.5.0-7f187f.svg)](https://github.com/wayfair-incubator/minigun/blob/main/CHANGELOG.md) +[![Minigun Version](https://img.shields.io/badge/Minigun-0.5.1-7f187f.svg)](https://github.com/wayfair-incubator/minigun/blob/main/CHANGELOG.md) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE_OF_CONDUCT.md) ## About The Project diff --git a/main.go b/main.go index c416cff..c24f98d 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ import ( ) // Constants and vars -const version = "0.5.0" +const version = "0.5.1" const workersCannelSize = 1024 const errorBadHTTPCode = "Bad HTTP status code" @@ -516,9 +516,7 @@ func worker(ctx context.Context, id int, config appConfig, comm chan message, st } } else { - config.metrics.requestsSendSuccess.WithLabelValues(config.metrics.labelValues...).Inc() - } } } diff --git a/metrics.go b/metrics.go index c50cb47..a13aaae 100644 --- a/metrics.go +++ b/metrics.go @@ -329,6 +329,8 @@ func initMetrics(config appConfig, labelNames, labelValues []string) appMetrics am.channelConfigLength.WithLabelValues(labelValues...).Set(float64(workersCannelSize)) am.channelLength.WithLabelValues(labelValues...).Set(float64(0)) am.channelFullEvents.WithLabelValues(labelValues...).Add(0) + am.requestsSendSuccess.WithLabelValues(labelValues...).Add(0) + am.requestsSendErrors.WithLabelValues(labelValues...).Add(0) return am }