Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve the tracing span in the EndpointDriver task
The EndpointDriver is spawned in a task. Unless the span is copied into this task the current span is lost. Copying the current span means any tracing calls inside the driver, from e.g. a custom AsyncUdpSocket, are preserved in the span. This makes it easy to use different parent spans for different endpoints and have log messages appear with their parent span. Otherwise these log messages are not attached to a span.
- Loading branch information