Skip to content

Remove redundant op name middleware.#1460

Merged
gouthamve merged 1 commit intocortexproject:masterfrom
gouthamve:fix-trace-ops
Jun 11, 2019
Merged

Remove redundant op name middleware.#1460
gouthamve merged 1 commit intocortexproject:masterfrom
gouthamve:fix-trace-ops

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 <gouthamve@gmail.com>
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