| 31 | } |
| 32 | |
| 33 | func MakeSpan(traceID []byte) *v1_trace.Span { |
| 34 | now := time.Now() |
| 35 | startTime := uint64(now.UnixNano()) |
| 36 | endTime := uint64(now.Add(time.Second).UnixNano()) |
| 37 | return makeSpanWithAttributeCount(traceID, rand.Int()%10+1, startTime, endTime) // nolint:gosec // G404: Use of weak random number generator |
| 38 | } |
| 39 | |
| 40 | func MakeSpanWithTimeWindow(traceID []byte, startTime uint64, endTime uint64) *v1_trace.Span { |
| 41 | return makeSpanWithAttributeCount(traceID, rand.Int()%10+1, startTime, endTime) // nolint:gosec // G404: Use of weak random number generator |