Skip to content

Commit 9ae5027

Browse files
authored
Merge pull request #3130 from jackfrancis/swallowed-contextss
missing context wrapping
2 parents a571bda + 8c28aef commit 9ae5027

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

azure/scope/machinepool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func (m *MachinePoolScope) GetBootstrapData(ctx context.Context) (string, error)
547547

548548
// GetVMImage picks an image from the AzureMachinePool configuration, or uses a default one.
549549
func (m *MachinePoolScope) GetVMImage(ctx context.Context) (*infrav1.Image, error) {
550-
_, log, done := tele.StartSpanWithLogger(ctx, "scope.MachinePoolScope.GetVMImage")
550+
ctx, log, done := tele.StartSpanWithLogger(ctx, "scope.MachinePoolScope.GetVMImage")
551551
defer done()
552552

553553
// Use custom Marketplace image, Image ID or a Shared Image Gallery image if provided

controllers/azurecluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func NewAzureClusterReconciler(client client.Client, recorder record.EventRecord
7171

7272
// SetupWithManager initializes this controller with a manager.
7373
func (acr *AzureClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options Options) error {
74-
_, log, done := tele.StartSpanWithLogger(ctx,
74+
ctx, log, done := tele.StartSpanWithLogger(ctx,
7575
"controllers.AzureClusterReconciler.SetupWithManager",
7676
tele.KVP("controller", "AzureCluster"),
7777
)

controllers/azureidentity_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type AzureIdentityReconciler struct {
5353

5454
// SetupWithManager initializes this controller with a manager.
5555
func (r *AzureIdentityReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error {
56-
_, log, done := tele.StartSpanWithLogger(ctx,
56+
ctx, log, done := tele.StartSpanWithLogger(ctx,
5757
"controllers.AzureIdentityReconciler.SetupWithManager",
5858
tele.KVP("controller", "AzureIdentity"),
5959
)

0 commit comments

Comments
 (0)