Skip to content

Commit

Permalink
Added metric for when we receive debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
johanoskarsson committed Jul 30, 2012
1 parent 6e19008 commit 628e5cb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ class SamplerProcessorFilter(sampler: GlobalSampler) extends ProcessorFilter[Seq
* If the span was created with debug mode on we guarantee that it will be
* stored no matter what our sampler tells us
*/
if (span.debug || sampler(span.traceId)) {
if (span.debug) {
Stats.incr("debugflag")
Some(span)
} else if (sampler(span.traceId)) {
Some(span)
} else {
None
Expand Down

0 comments on commit 628e5cb

Please sign in to comment.