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

Opentracing support #2587

Merged
merged 14 commits into from
Jan 10, 2018
Merged

Opentracing support #2587

merged 14 commits into from
Jan 10, 2018

Conversation

mmatur
Copy link
Member

@mmatur mmatur commented Dec 18, 2017

What does this PR do?

This PR carries #2237 made by @tcolgate 👏

More

  • Added/updated tests
  • Added/updated documentation

Fixes #771

@@ -202,6 +205,23 @@ func NewTraefikDefaultPointersConfiguration() *TraefikConfiguration {
DialTimeout: flaeg.Duration(configuration.DefaultDialTimeout),
}

// default Tracing
defaultTracing := tracing.Tracing{
Backend: "jarger",
Copy link
Contributor

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?

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

👏 👏

w.WriteHeader(forwardResponse.StatusCode)
statusCode := forwardResponse.StatusCode
tracing.LogResponseCode(tracing.GetSpan(r), statusCode)
w.WriteHeader(statusCode)
Copy link
Member

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 ?

Copy link
Member Author

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 👏

"github.com/urfave/negroni"
)

type fwdMiddleware struct {
Copy link
Member

Choose a reason for hiding this comment

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

fwdMiddleware => forwarderMiddleware ?

*Tracing
}

// NewForwarder creates a new forwarder middleware that the final outgoing request
Copy link
Member

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

next.ServeHTTP(w, r)
}
})
authenticator.handler = tracingMiddleware.NewNegroniHandlerWrapper("Auth Basic", createAuthBasicHandler(basicAuth, authConfig), false)
Copy link
Member

Choose a reason for hiding this comment

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

tracingMiddleware could be nil ?

Copy link
Member Author

@mmatur mmatur Dec 28, 2017

Choose a reason for hiding this comment

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

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

@mmatur @tcolgate

Many thanks for this awesome feature! 👏 👏

LGTM! 🎉

@emilevauge
Copy link
Member

emilevauge commented Jan 10, 2018

@tcolgate I apologise for this, we made a mistake 😔 your commits should indeed appear in the history. This PR has been merged too quickly.
Your initial work was amazing and openTracing would not have been supported by Traefik without you.

@mmatur mmatur deleted the feature/opentracing branch January 10, 2018 19:16
@mmatur mmatur restored the feature/opentracing branch January 10, 2018 20:07
@mmatur mmatur deleted the feature/opentracing branch January 10, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants