Use declared `ctx` instead for span.End conditional
Use declared `ctx` instead for span.End conditional

tests fail with the value trace.StartSpan always being true

travis-ci/worker,travis-ci/worker,travis-ci/worker