Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

gustavomassa
Copy link

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.

Copy link
Owner

@rocklan rocklan left a 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)
Copy link
Owner

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?

Copy link
Owner

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)
Copy link
Owner

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?

@rocklan
Copy link
Owner

rocklan commented Jan 21, 2021

@gustavomassa if you could reply to this PR within a week that would be great, if not I'll close it as abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants