1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-27 22:49:15 +02:00

Rename CurrentSpan to SpanFromContext & SetCurrentSpan to ContextWithSpan (#379)

Signed-off-by: vineeth <vineethpothulapati@outlook.com>
This commit is contained in:
Vineeth Pothulapati
2019-12-11 22:21:32 +05:30
committed by rghetia
parent 658dd7d1b9
commit b863b8f6ab
22 changed files with 45 additions and 45 deletions

View File

@@ -77,7 +77,7 @@ func main() {
}
body, err = ioutil.ReadAll(res.Body)
_ = res.Body.Close()
trace.CurrentSpan(ctx).SetStatus(codes.OK)
trace.SpanFromContext(ctx).SetStatus(codes.OK)
return err
})