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

Remove redundant op name middleware. #1460

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

gouthamve
Copy link
Contributor

The weaveworks/common already has the middleware on by default.
See: https://github.com/weaveworks/common/blob/master/server/server.go#L162-L164
and weaveworks/common#126

Else we are ending up URIs in the op names.

The weaveworks/common already has the middleware on by default.
See: https://github.com/weaveworks/common/blob/master/server/server.go#L162-L164
and weaveworks/common#126

Signed-off-by: Goutham Veeramachaneni <[email protected]>
Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

lgtm; I'm slightly concerned we're losing something, but looking at #1262, this code was present in cmd/distributor/main.go and not in any other main program. I don't understand why it was thought to be necessary there.

@gouthamve
Copy link
Contributor Author

I think it's legacy that is used only for only one path (/api/prom/push) in the old code. I think we're going to get the same result even in the distributors with this.

@gouthamve gouthamve merged commit 330d729 into cortexproject:master Jun 11, 2019
@gouthamve gouthamve deleted the fix-trace-ops branch June 11, 2019 20:38
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