Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bmermet committed Jul 27, 2018
1 parent 8a6a081 commit 90abcc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/trace-agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (pt *processedTrace) getSamplingPriority() (int, bool) {
if pt.Root == nil {
return 0, false
}
priorityFloat, hasPriority := pt.Root.Metrics[sampler.SamplingPriorityKey]
return int(priorityFloat), hasPriority
p, ok := pt.Root.Metrics[sampler.SamplingPriorityKey]
return int(p), ok
}

// Agent struct holds all the sub-routines structs and make the data flow between them
Expand Down
2 changes: 1 addition & 1 deletion sampler/prioritysampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

const (
// SamplingPriorityKey is the key of the sampling priority value in the metrics dictionnary of the root span
// SamplingPriorityKey is the key of the sampling priority value in the metrics map of the root span
SamplingPriorityKey = "_sampling_priority_v1"
syncPeriod = 3 * time.Second
)
Expand Down

0 comments on commit 90abcc8

Please sign in to comment.