Re-evaluation trace.FromContext conditional
@@ -650,7 +650,7 @@ func (p *gceProvider) apiRateLimit(ctx gocontext.Context) error {
time.Sleep(time.Millisecond * time.Duration(mathrand.Intn(1000)))
- if ctx != nil {
+ if trace.FromContext(ctx) != nil {
span.End()
}
}
