Conversation
Signed-off-by: Won Jun Jang <wjang@uber.com>
Codecov Report
@@ Coverage Diff @@
## master #876 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 125 126 +1
Lines 6046 6057 +11
=====================================
+ Hits 6046 6057 +11
Continue to review full report at Codecov.
|
| type IndexFilter interface { | ||
| IndexByDuration(span *Span) bool | ||
| IndexByService(span *Span) bool | ||
| IndexByOperation(span *Span) bool |
There was a problem hiding this comment.
This is OK, just not a huge fan of the hard coded function names. Constants can accomplish the same thing dynamically:
const (
durationIndex = iota
serviceIndex
operationIndex
)
type IndexFilter func(span *Span, index int)
jpkrohling
left a comment
There was a problem hiding this comment.
Perhaps I missed it, but would the possibility of filtering out debug spans come in a later PR?
| }, StoreIndexesOnly()) | ||
| } | ||
|
|
||
| type indexFilter struct{} |
There was a problem hiding this comment.
This filter will filter out everything, right? Would it be more appropriate to name it noNameFilter{}?
|
@jpkrohling this mechanism could be used to implement that feature as well. |
Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
|
@jpkrohling later PR, I promise |
Signed-off-by: Won Jun Jang wjang@uber.com
Which problem is this PR solving?
Short description of the changes