mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
runtime: Fix trace span ordering
Return ctx in trace() functions to correct span ordering. Fixes #1550 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
@@ -700,7 +700,7 @@ func (c *Container) createBlockDevices(ctx context.Context) error {
|
||||
|
||||
// newContainer creates a Container structure from a sandbox and a container configuration.
|
||||
func newContainer(ctx context.Context, sandbox *Sandbox, contConfig *ContainerConfig) (*Container, error) {
|
||||
span, _ := sandbox.trace(ctx, "newContainer")
|
||||
span, ctx := sandbox.trace(ctx, "newContainer")
|
||||
defer span.End()
|
||||
|
||||
if !contConfig.valid() {
|
||||
|
||||
Reference in New Issue
Block a user