Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: create new tracing span in mt-start-sql
This commit fixes a possible misuse of the tracing infrastructure with `mt start-sql` command. In particular, previously it was possible for a tracing span created (and finished) in `runStartInternal` to be used by a couple of things in `makeTenantSQLServerArgs` (main one being `rpc.Context`) that hold on to the context after the corresponding span has been finished. This is disallowed (since we reuse spans after `Finish` has been called on them) and was recently discovered. This problem is now fixed by deriving a child span only in `mt start-sql` code path that is never finished (since those users can be active throughout the whole lifetime of the tenant server). The bug is pretty minor (I think only serverless is affected), so there is no release note. Release note: None
- Loading branch information