fix: Log associate with Trace (#343)

This commit is contained in:
Fine0830 2023-11-22 13:03:59 +08:00 committed by GitHub
parent 03e1508afc
commit d8a3c27345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,7 @@ limitations under the License. -->
{ {
sourceId: options.id || "", sourceId: options.id || "",
traceId: id, traceId: id,
id: props.data.serviceId || "",
}, },
"Trace", "Trace",
); );

View File

@ -178,6 +178,7 @@ limitations under the License. -->
if (props.data.filters.id) { if (props.data.filters.id) {
item = arr.find((d: { id: string }) => d.id === props.data.filters?.id); item = arr.find((d: { id: string }) => d.id === props.data.filters?.id);
} }
return item; return item;
} }
function setCondition() { function setCondition() {
@ -194,7 +195,7 @@ limitations under the License. -->
if (props.data.filters && props.data.filters.id) { if (props.data.filters && props.data.filters.id) {
param = { param = {
...param, ...param,
serviceId: selectorStore.currentService.id, serviceId: props.data.filters.id || undefined,
endpointId: state.endpoint.id || undefined, endpointId: state.endpoint.id || undefined,
serviceInstanceId: state.instance.id || undefined, serviceInstanceId: state.instance.id || undefined,
}; };