| 1 | package stressClient |
| 2 | |
| 3 | import ( |
| 4 | "sync" |
| 5 | ) |
| 6 | |
| 7 | // The Tracer carrys tags and a waitgroup from the statements through the package life cycle |
| 8 | type Tracer struct { |
| 9 | Tags map[string]string |
| 10 | |
| 11 | sync.WaitGroup |
| 12 | } |
| 13 | |
| 14 | // NewTracer returns a Tracer with tags attached |
| 15 | func NewTracer(tags map[string]string) *Tracer { |
| 16 | return &Tracer{ |
| 17 | Tags: tags, |
| 18 | } |
| 19 | } |