-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to pass a bucket size for the httpRequestsDuration #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gustavomassa ! Thanks very much for the pull request. I like the general approach and it looks good. I've added a few comments in the PR for you to consider.
/// | ||
/// </summary> | ||
/// <param name="bucektSize"></param> | ||
public PrometheusHttpRequestModule(double[] bucektSize) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change this constructor so that it looks like this:
public PrometheusHttpRequestModule(double[] bucektSize = null)
Does that mean you don't need the other constructor at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also, please fix the spelling mistake :)
/// </summary> | ||
/// <param name="sender"></param> | ||
/// <param name="e"></param> | ||
// Record the time of the begin request event. | ||
public void OnBeginRequest(Object sender, EventArgs e) | ||
private void OnBeginRequest(Object sender, EventArgs e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to change this to private?
@gustavomassa if you could reply to this PR within a week that would be great, if not I'll close it as abandoned. |
BEH-1731 Atualizando as packages
* refact: Apps Atualizados para o modelo de PackageReference * chore: Upgrade do dotnet framework para 4.8 * chore: Upgrade de dependências * chore: AssemblyInfo * feat: package reference format * fix: ajustada versão para 1.1.1
We needed to increase the bucket size of the httpRequestsDuration, 10 seconds was not enough, so we used constructors for it. Please let me know if you have a better option.