This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
No root span created for a query #778
Closed
Description
Hi,
When I made a sql query (like select * from sql where id = 1
), I got four traces (see screenshot). I expected that there was a single trace that represented the whole execution path for this query, not four separate traces each of which represented a phase of the execution path.
According to the source code https://github.com/src-d/go-mysql-server/blob/master/server/handler.go#L78-L90, a context ctx
is created and is passed into Query
. There is no root span created in between.
Is there a way to create a root span without changing the source code? Thanks!