Skip to content

Commit

Permalink
remove unnecessary setMetric case
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Oct 4, 2024
1 parent 0da1205 commit 9b50388
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ddtrace/tracer/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,6 @@ func (s *Span) setMetric(key string, v float64) {
if v == float64(samplernames.AppSec) {
s.setSamplingPriorityLocked(ext.PriorityUserKeep, samplernames.AppSec)
}
case ext.ManualDrop:
if v == float64(samplernames.AppSec) {
s.setSamplingPriorityLocked(ext.PriorityUserReject, samplernames.AppSec)
}
default:
s.metrics[key] = v
}
Expand Down

0 comments on commit 9b50388

Please sign in to comment.