You've already forked opentelemetry-go
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:
committed by
rghetia
parent
658dd7d1b9
commit
b863b8f6ab
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user