mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
query log with trace params
This commit is contained in:
parent
4dd198b9a6
commit
04014a13be
2
src/types/dashboard.d.ts
vendored
2
src/types/dashboard.d.ts
vendored
@ -48,6 +48,8 @@ export interface LayoutConfig {
|
|||||||
endTime: string;
|
endTime: string;
|
||||||
};
|
};
|
||||||
traceId?: string;
|
traceId?: string;
|
||||||
|
spanId?: string;
|
||||||
|
segmentId?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,6 +252,11 @@ function searchLogs() {
|
|||||||
category: state.category.value,
|
category: state.category.value,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
let segmentId, spanId;
|
||||||
|
if (options && options.filters) {
|
||||||
|
segmentId = options.filters.segmentId;
|
||||||
|
spanId = options.filters.spanId;
|
||||||
|
}
|
||||||
logStore.setLogCondition({
|
logStore.setLogCondition({
|
||||||
serviceId: selectorStore.currentService
|
serviceId: selectorStore.currentService
|
||||||
? selectorStore.currentService.id
|
? selectorStore.currentService.id
|
||||||
@ -263,7 +268,9 @@ function searchLogs() {
|
|||||||
excludingKeywordsOfContent: excludingKeywordsOfContent.value,
|
excludingKeywordsOfContent: excludingKeywordsOfContent.value,
|
||||||
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
||||||
paging: { pageNum: 1, pageSize: 15 },
|
paging: { pageNum: 1, pageSize: 15 },
|
||||||
relatedTrace: traceId.value ? { traceId: traceId.value } : undefined,
|
relatedTrace: traceId.value
|
||||||
|
? { traceId: traceId.value, segmentId, spanId }
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
queryLogs();
|
queryLogs();
|
||||||
|
@ -83,7 +83,7 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, inject } from "vue";
|
import { inject } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import type { PropType } from "vue";
|
import type { PropType } from "vue";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
Loading…
Reference in New Issue
Block a user