-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use prometheus_histogram:declare/1 instead prometheus_histogram:new/1 (…
…#173) When a RADIUS request comes to eradius or we try to send a request from it - new histogram metric could be created. There could be a situation when a couple of RADIUS requests with the same name and similar labels come to eradius which may lead to crash because of races during creation of prometheus metric. This commit replaces prometheus_histogram:new/1 with prometheus_histogram:declare/1 API as the first one throws an exception in a case of metric already exists.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters