What are some good practices for using spans in tracing
? To be specific:
- When is it appropriate to manually set the parent of a span?
- If I manually set the parent of a span
bar
tofoo
, do I need to enterfoo
before enteringbar
? What happens if I enterbar
while inside a different spanbaz
? - What functions should and should not be instrumented?