Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ddtrace/tracer: only finish execution trace task, restore pprof label…
…s once It's possible for users to call Finish multiple times on a span. We should only record the span finishing in the execution tracer and via pprof labels one time, though. Otherwise we're 1) wasting space in the trace and 2) possibly overriding pprof labels with incorrect values. Move the task ending and label setting inside span.finish, after we check whether the span is already finished.
- Loading branch information