Make sure UI send empty trace configs to proxy
Otherwise when we don't select any of the trace configuration we won't update the tracing config and will just use the latest config Test: deselect all trace config flags and make sure that config is set when tracing Bug: 262563422 Change-Id: If55d6a0592552c1ebeb5d928073fe9d12440a3f1
This commit is contained in:
@@ -425,7 +425,7 @@ export class CollectTracesComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
private requestedEnableConfig(): Array<string> | undefined {
|
||||
private requestedEnableConfig(): Array<string> {
|
||||
const req: Array<string> = [];
|
||||
const tracingConfig = this.tracingConfig.getTracingConfig();
|
||||
Object.keys(tracingConfig)
|
||||
@@ -442,9 +442,6 @@ export class CollectTracesComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
});
|
||||
if (req.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return req;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user