Navigation Menu

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

enhance tracing #887

Merged
merged 2 commits into from Dec 20, 2018
Merged

enhance tracing #887

merged 2 commits into from Dec 20, 2018

Conversation

szuecs
Copy link
Member

@szuecs szuecs commented Dec 20, 2018

related: #860

feature: trace filters and log filter names start/stop
feature: add hostname tag to ingress span to show the instance of the trace
feature: trace log retries

Signed-off-by: Sandor Szücs sandor.szuecs@zalando.de

feature: add hostname tag to ingress span to show the instance of the trace
feature: trace log retries

Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
if span := ot.SpanFromContext(ctx.Request().Context()); span != nil {
span.LogKV(`circuit_breaker`, `open`)
}
tracing.LogKV("circuit_breaker", "open", ctx.request.Context())
Copy link
Contributor

Choose a reason for hiding this comment

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

Here can add a error tag true which shows in the ui.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also do that in case of any proxy errors.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added it to the ingress span in case proxy.do() returns an error, because the client does not care which part errors and the proxy span already sets this tag on error in proxy.makeBackendRequest

…l error returns from proxy.do()

Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
@vetinari
Copy link
Member

vetinari commented Dec 20, 2018

👍

1 similar comment
@szuecs
Copy link
Member Author

szuecs commented Dec 20, 2018

👍

@szuecs szuecs merged commit 2f4e5b6 into master Dec 20, 2018
@szuecs szuecs deleted the feature/enhance-tracing branch December 20, 2018 15:09
@szuecs
Copy link
Member Author

szuecs commented Dec 20, 2018

This PR partially solved #797, because it now logs start and stop in the trace and has one span open for all request filter processing.

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.

None yet

3 participants