File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -332,13 +332,16 @@ export async function build(context, version) {
332
332
if ( ! existingVM ) {
333
333
werft . log ( vmSlices . BOOT_VM , 'Starting VM' )
334
334
VM . startVM ( { name : destname } )
335
+ werft . currentPhaseSpan . setAttribute ( "werft.harvester.created_vm" , true )
335
336
} else if ( cleanSlateDeployment ) {
336
337
werft . log ( vmSlices . BOOT_VM , 'Removing existing namespace' )
337
338
VM . deleteVM ( { name : destname } )
338
339
werft . log ( vmSlices . BOOT_VM , 'Starting VM' )
339
340
VM . startVM ( { name : destname } )
341
+ werft . currentPhaseSpan . setAttribute ( "werft.harvester.created_vm" , true )
340
342
} else {
341
343
werft . log ( vmSlices . BOOT_VM , 'VM already exists' )
344
+ werft . currentPhaseSpan . setAttribute ( "werft.harvester.created_vm" , false )
342
345
}
343
346
344
347
werft . log ( vmSlices . BOOT_VM , 'Waiting for VM to be ready' )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class Werft {
20
20
private tracer : Tracer ;
21
21
public rootSpan : Span ;
22
22
private sliceSpans : { [ slice : string ] : Span } = { }
23
- private currentPhaseSpan : Span ;
23
+ public currentPhaseSpan : Span ;
24
24
25
25
constructor ( job : string ) {
26
26
if ( werft ) {
You can’t perform that action at this time.
0 commit comments