sourcegraph / appdash

Application tracing system for Go, based on Google's Dapper.
https://sourcegraph.com
Other
1.72k stars 137 forks source link

traceapp: add strict span filtering support. #18

Closed slimsag closed 9 years ago

slimsag commented 9 years ago

This change adds a Filter option to the span right-click context menu:


image

Clicking the option brings up a sub-menu:


image

As mentioned in the tooltips added by this change (no screenshot), the Filter input box accepts a strict-search key:value pair. For example searching for Name:"Shuplin" on the top-level Request span:


image

Filtering shows or hides all children spans below the one you opened the context menu on. The strict searching pattern of key:value (where value is a "quoted" string) is used to allow for differentiation between strict and fuzzy searching in the future.

As another example, searching for SQL:"SELECT * FROM table_name;" (which is present in all the fake timespan events generated by --sample-data) shows all the spans:


image