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:
Pablo Gamito
2022-12-16 13:03:28 +00:00
parent 17d886284c
commit 38dbb6c195

View File

@@ -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;
}