chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -195,7 +195,7 @@ export const SideDebugPanel = (props: SideDebugPanelProps) => {
|
||||
if (!spanCategory) {
|
||||
await handleFetchTracesMetaInfo();
|
||||
}
|
||||
// 从某条消息进入
|
||||
// Enter from a message
|
||||
if (entranceMessageLogId) {
|
||||
try {
|
||||
const spans = await handleFetchQueryDetail(entranceMessageLogId);
|
||||
@@ -232,7 +232,7 @@ export const SideDebugPanel = (props: SideDebugPanelProps) => {
|
||||
setLoading(false);
|
||||
}
|
||||
}
|
||||
//直接进入
|
||||
//Direct entry
|
||||
else {
|
||||
try {
|
||||
const spans = await handleFetchQuery();
|
||||
|
||||
@@ -15,26 +15,26 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* 支持筛选的query时间范围
|
||||
* Support for filtering query time ranges
|
||||
*/
|
||||
export const DATE_FILTERING_DAYS_NUMBER = 7;
|
||||
export const FILTERING_OPTION_ALL = 'ALL';
|
||||
/**
|
||||
* query每次加载条数
|
||||
* Query the number of pieces loaded per time
|
||||
*/
|
||||
export const FILTERING_LIMIT = 30;
|
||||
export const TRACES_ADVANCE_INFO_TIME_BUFFER = 1000;
|
||||
export const TIME_MINUTE = 60;
|
||||
/**
|
||||
* query拉取默认偏移量
|
||||
* Query Pull Default Offset
|
||||
*/
|
||||
export const INITIAL_OFFSET = '0';
|
||||
export const EMPTY_TEXT = '-';
|
||||
/**
|
||||
* query拉取防抖时间
|
||||
* Query Pull anti-shake time
|
||||
*/
|
||||
export const QUERY_FILTER_DEBOUNCE_TIME = 300;
|
||||
/**
|
||||
* 调试台位置信息localStorage key
|
||||
* Debug station location information localStorage key
|
||||
*/
|
||||
export const DEBUG_PANEL_LAYOUT_KEY = 'coze_debug_panel_layout_config';
|
||||
|
||||
@@ -31,7 +31,7 @@ export type UseDebugPanelLayoutConfig = () => [
|
||||
];
|
||||
|
||||
/**
|
||||
* 获取和修改存储在localStorage中的调试台布局数据
|
||||
* Get and modify debug bench layout data stored in localStorage
|
||||
* @returns UseDebugPanelLayoutConfig
|
||||
*/
|
||||
export const useDebugPanelLayoutConfig: UseDebugPanelLayoutConfig = () => {
|
||||
|
||||
@@ -36,35 +36,35 @@ interface DebugPanelStore {
|
||||
isPanelShow: boolean;
|
||||
basicInfo: BasicInfo;
|
||||
/**
|
||||
* 当前选中的Query LogID
|
||||
* The currently selected Query LogID
|
||||
*/
|
||||
entranceMessageLogId?: string;
|
||||
/**
|
||||
* 日期筛选结果
|
||||
* date filter results
|
||||
*/
|
||||
targetDateId?: QueryFilterItemId;
|
||||
/**
|
||||
* 状态筛选结果
|
||||
* status filter results
|
||||
*/
|
||||
targetExecuteStatusId?: QueryFilterItemId;
|
||||
/**
|
||||
* 当前选中的Trace节点信息
|
||||
* Trace node information currently selected
|
||||
*/
|
||||
targetOverallSpanInfo?: TargetOverallSpanInfo;
|
||||
/**
|
||||
* 当前计算后的Trace列表
|
||||
* Current Calculated Trace List
|
||||
*/
|
||||
enhancedOverallSpans: CSpan[];
|
||||
/**
|
||||
* 某条Trace下Span节点列表
|
||||
* List of Spans under a Trace
|
||||
*/
|
||||
orgDetailSpans?: Span[];
|
||||
/**
|
||||
* 额外Span类型信息(服务端提供)
|
||||
* Additional Span type information (server level provided)
|
||||
*/
|
||||
spanCategory?: SpanCategory;
|
||||
/**
|
||||
* 当前选中的Span节点信息
|
||||
* Information about the currently selected Span node
|
||||
*/
|
||||
targetDetailSpan?: CSpan;
|
||||
curBatchPage?: number;
|
||||
|
||||
@@ -31,7 +31,7 @@ dayjs.extend(utc);
|
||||
const jsonBig = JSONBig({ storeAsString: true });
|
||||
|
||||
/**
|
||||
* 转换时间戳为当前格式化当前时区时间
|
||||
* Convert timestamp to current format current time zone
|
||||
* @param timestamp string | number
|
||||
* @returns UTCTimeInfo
|
||||
*/
|
||||
@@ -62,7 +62,7 @@ export const getPastWeekDates = (): string[] => {
|
||||
};
|
||||
|
||||
/**
|
||||
* 从格式化时间提取其当前对应的开始/结束时间戳
|
||||
* Extract its current corresponding start/end timestamp from the format time
|
||||
* @param formattedDate QueryFilterItemId
|
||||
* @returns DailyTime
|
||||
*/
|
||||
|
||||
@@ -43,7 +43,7 @@ export const getSpanProp = (span: CSpan, key: string) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* 加强原始Span信息(注入服务端采集的token、status等信息)
|
||||
* Enhance the original Span information (inject token, status, etc. collected at the server level)
|
||||
* @param originSpans Span[]
|
||||
* @param traceAdvanceInfo TraceAdvanceInfo[]
|
||||
* @returns CSpan[]
|
||||
|
||||
Reference in New Issue
Block a user