From 3ecceab60ba8a5127aff301eeb25a6b2229488c1 Mon Sep 17 00:00:00 2001 From: John Mears Date: Tue, 21 Nov 2023 09:47:12 -0700 Subject: [PATCH] Add trace span to GetBootDeviceOverride --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 0b709ed3..fe9b3fd7 100644 --- a/client.go +++ b/client.go @@ -457,8 +457,12 @@ func (c *Client) ReadUsers(ctx context.Context) (users []map[string]string, err // GetBootDeviceOverride pass through to library function func (c *Client) GetBootDeviceOverride(ctx context.Context) (override bmc.BootDeviceOverride, err error) { + ctx, span := c.traceprovider.Tracer(pkgName).Start(ctx, "GetBootDeviceOverride") + defer span.End() + override, metadata, err := bmc.GetBootDeviceOverrideFromInterface(ctx, c.perProviderTimeout(ctx), c.registry().GetDriverInterfaces()) c.setMetadata(metadata) + return override, err }