Tracer Version(s)
v2.2.3
Go Version(s)
go version go1.24.6 darwin/arm64
Bug Report
The documentation regarding dd-trace-go v2 documentation regarding distributed tracing has this code:
Then, on the server side, to continue the trace one would do:
sctx, err := tracer.Extract(tracer.HTTPHeadersCarrier(req.Header))
// ...
span := tracer.StartSpan("child.span", tracer.ChildOf(sctx))
But the documentation also says that tracer.ChildOf is deprecated. So like I am confused, how am I supposed to continue with a child span in distributed tracing, if I am a server who was called by someone
Reproduction Code
No response
Error Logs
No response
Go Env Output
No response