Skip to content

Conversation

@mlvazqu2
Copy link

@mlvazqu2 mlvazqu2 commented Aug 1, 2018

… set the middleware and run the engine

zsais
zsais previously requested changes Aug 13, 2018
Copy link
Owner

@zsais zsais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Have two small changes then will merge


func (p *Prometheus) setMetricsPath(e *gin.Engine) {
// SetMetricsPath set metrics paths
func (p *Prometheus) SetMetricsPath(e *gin.Engine) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you have this function call into setMetricsPath() so we can maintain backwards-compatibility?


func (p *Prometheus) setMetricsPathWithAuth(e *gin.Engine, accounts gin.Accounts) {
// SetMetricsPathWithAuth set metrics paths with authentication
func (p *Prometheus) SetMetricsPathWithAuth(e *gin.Engine, accounts gin.Accounts) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@zsais zsais dismissed their stale review October 30, 2018 19:52

Changes are fine

@zsais zsais merged commit 1e21add into zsais:master Oct 30, 2018
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.

2 participants