Skip to content

Commit 8c28aef

Browse files
committed
missing context wrapping
1 parent ef483b6 commit 8c28aef

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
@@ -571,7 +571,7 @@ func (m *MachinePoolScope) GetBootstrapData(ctx context.Context) (string, error)
571571

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

577577
// 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)