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

Allow filtering the trace list #22

Open
shakuzen opened this issue Oct 3, 2018 · 9 comments
Open

Allow filtering the trace list #22

shakuzen opened this issue Oct 3, 2018 · 9 comments

Comments

@shakuzen
Copy link
Member

shakuzen commented Oct 3, 2018

When there are many traces shown in the trace list, it isn't always easy to find what you are looking for.

Some ideas for things to include and be able to filter on: HTTP status, HTTP method, URI.

Background

The idea for this came to me because of the following.

We have cases where an OPTIONS request will be sent before a GET/POST/PATCH request to the same URI. Both of these requests are intercepted by the plugin and shown in the Zipkin tab, but other than knowing that the OPTIONS request comes before the other, it isn't clear which is which. Since the OPTIONS request is handled by our API gateway (uninstrumented) and not sent to the API, this trace won't actually be in Zipkin. It would be nice to at least clearly distinguish the OPTIONS request and even better would be a way to filter it out of the list.

@eirslett
Copy link
Contributor

eirslett commented Oct 3, 2018

I guess we could discard all OPTIONS requests, it doesn’t make sense to instrument them...

@shakuzen
Copy link
Member Author

shakuzen commented Oct 3, 2018

I guess we could discard all OPTIONS requests, it doesn’t make sense to instrument them...

That would be a welcome improvement regardless of whether we do filters, since as you say, it doesn't make sense to instrument them. That would mitigate the inconvenience that caused me to want filters in the first place.

@eirslett
Copy link
Contributor

eirslett commented Oct 3, 2018

Feel free to send a PR! I guess that would be the easiest option for now, then we don’t need to implement filters.

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 3, 2018 via email

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 3, 2018 via email

@eirslett
Copy link
Contributor

eirslett commented Oct 4, 2018

OPTIONS requests usually doesn't hit the application at all, they are handled by whatever is running in front, nginx or haproxy for example.

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 6, 2018 via email

@llinder
Copy link
Member

llinder commented Oct 8, 2018

Filtering would be interesting. Based on some of our use cases for Zipkin I can say that ignoring OPTIONS requests all together might not be ideal. One example is starting a trace client side based on some user action where we want to record latency from the clients perspective. Since a CORS preflight check could be part of the latency for the user action, dropping theses all together would give less overall insight.

All of that said, we don't use the browser extension heavily so I don't have a strong opinion against ignoring OPTIONS requests from the extension.

@sideroad
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants