-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Opentracing support #2587
Opentracing support #2587
Conversation
9f6f1a7
to
7195863
Compare
cmd/traefik/configuration.go
Outdated
@@ -202,6 +205,23 @@ func NewTraefikDefaultPointersConfiguration() *TraefikConfiguration { | |||
DialTimeout: flaeg.Duration(configuration.DefaultDialTimeout), | |||
} | |||
|
|||
// default Tracing | |||
defaultTracing := tracing.Tracing{ | |||
Backend: "jarger", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be mistaken, but I think this should be jaeger
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 👏
middlewares/auth/forward.go
Outdated
w.WriteHeader(forwardResponse.StatusCode) | ||
statusCode := forwardResponse.StatusCode | ||
tracing.LogResponseCode(tracing.GetSpan(r), statusCode) | ||
w.WriteHeader(statusCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you use a statusCode
var ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is unnecessary, you right 👏
middlewares/tracing/forwarder.go
Outdated
"github.com/urfave/negroni" | ||
) | ||
|
||
type fwdMiddleware struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwdMiddleware => forwarderMiddleware ?
middlewares/tracing/forwarder.go
Outdated
*Tracing | ||
} | ||
|
||
// NewForwarder creates a new forwarder middleware that the final outgoing request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this sentence
middlewares/auth/authenticator.go
Outdated
next.ServeHTTP(w, r) | ||
} | ||
}) | ||
authenticator.handler = tracingMiddleware.NewNegroniHandlerWrapper("Auth Basic", createAuthBasicHandler(basicAuth, authConfig), false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tracingMiddleware could be nil ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tracingMiddleware
can not be nil because there is a default value https://github.com/containous/traefik/pull/2587/files/f7b0da15af1a7d836f9e21cae6f252b4580c3c7e#diff-f80800db6a453c4a7fff51b05de444f2R209
b00e3a0
to
82ec752
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ee234fd
to
695a2fd
Compare
695a2fd
to
633eafb
Compare
@tcolgate I apologise for this, we made a mistake 😔 your commits should indeed appear in the history. This PR has been merged too quickly. |
What does this PR do?
This PR carries #2237 made by @tcolgate 👏
More
Fixes #771