Skip to content

Commit

Permalink
Add trace span to GetBootDeviceOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeefreak101 committed Nov 21, 2023
1 parent af946a8 commit 3ecceab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 461 in client.go

View check run for this annotation

Codecov / codecov/patch

client.go#L459-L461

Added lines #L459 - L461 were not covered by tests

override, metadata, err := bmc.GetBootDeviceOverrideFromInterface(ctx, c.perProviderTimeout(ctx), c.registry().GetDriverInterfaces())
c.setMetadata(metadata)

Check warning on line 464 in client.go

View check run for this annotation

Codecov / codecov/patch

client.go#L463-L464

Added lines #L463 - L464 were not covered by tests

return override, err

Check warning on line 466 in client.go

View check run for this annotation

Codecov / codecov/patch

client.go#L466

Added line #L466 was not covered by tests
}

Expand Down

0 comments on commit 3ecceab

Please sign in to comment.