Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set builder parent span to None when manually setting parent (#26)
## Motivation When I tried to find a parent span as someone not familiar with the code I tried using what's in the builder and if there's None I tried the parent context (which always has trace ID, it just might be invalid). This change should simplify this for people unfamiliar with the codebase by getting rid of the trace ID that's not used. ## Solution Set trace ID in builder to `None`. It has not been used anywhere if parent_cx contained a valid trace ID so no other changes are needed. Signed-off-by: David Mládek <david.mladek.cz@gmail.com>
- Loading branch information