Skip to content

Option to pass a bucket size for the httpRequestsDuration - #2

Open
gustavomassa wants to merge 11 commits into
rocklan:masterfrom
movidesk:master
Open

Option to pass a bucket size for the httpRequestsDuration#2
gustavomassa wants to merge 11 commits into
rocklan:masterfrom
movidesk:master

Conversation

@gustavomassa

Copy link
Copy Markdown

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.

@rocklan rocklan left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
Copy Markdown
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 :)

/// <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
Copy Markdown
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

rocklan commented Jan 21, 2021

Copy link
Copy Markdown
Owner

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

epmallmann and others added 10 commits June 21, 2021 10:55
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.

3 participants