-
결과{copy.label}
-
HTTP{trace.httpStatus || '-'}
+
+ 실행 결과{resultLabel}
+ HTTP 상태{trace.httpStatus || '-'}
총 소요 시간{trace.durationMs}ms
- Span{trace.events.length}개
+
+
진입 서비스{trace.serviceName ?? '-'}
참여 서비스{trace.serviceNames.length}개 · 경계 {serviceTransitions}회
+ 수집된 Span{trace.events.length}개
{failureEvent ? (
@@ -52,17 +45,13 @@ export function TraceOutcomeSummary({
{outcome === 'recovered' ? '복구된 실패' : '주요 실패 원인'}
-
{failureLabel} · {failureEvent.errorType ?? EVENT_STATUS_LABEL[failureEvent.status]}
+
{failureEvent.serviceName ? `${failureEvent.serviceName} / ` : ''}{failureLabel}
+
{failureEvent.errorType ?? EVENT_STATUS_LABEL[failureEvent.status]}
{failureEvent.errorMessage ?? `${failureEvent.eventType} 실행 중 문제가 발생했습니다.`}
{propagationPath.length > 1 ? (
오류 전파
- {propagationPath.map((event, index) => (
-
- {index > 0 ? : null}
- {event.serviceName ? `${event.serviceName} / ` : ''}{event.eventType}
-
- ))}
+ {propagationLabel}
) : null}
@@ -71,18 +60,26 @@ export function TraceOutcomeSummary({
- ) : (
-
+ ) : !collectionTimedOut ? (
+
- {outcome === 'collection_timeout' ? : }
+
-
실행 결과
-
{copy.label}
-
{copy.detail}
+
{resultDetail}
+
+
+ ) : null}
+
+ {collectionTimedOut ? (
+
+
+
+
Span 수집 시간 초과
+
{resultDetail} Agent 실행 설정과 Collector 주소를 확인하세요.
- )}
+ ) : null}
)
}
diff --git a/frontend/src/features/workbench/views/TraceView.css b/frontend/src/features/workbench/views/TraceView.css
index 7a21cd3..2908315 100644
--- a/frontend/src/features/workbench/views/TraceView.css
+++ b/frontend/src/features/workbench/views/TraceView.css
@@ -80,10 +80,18 @@
.trace-outcome__metrics {
display: grid;
- grid-template-columns: repeat(6, minmax(0, 1fr));
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+
+.trace-outcome__metrics--primary {
border-bottom: 1px solid var(--color-line);
}
+.trace-outcome__metrics--scope {
+ border-bottom: 1px solid var(--color-line);
+ background: #f8fafc;
+}
+
.trace-outcome__metrics > span {
display: grid;
gap: 3px;
@@ -117,10 +125,6 @@
color: var(--color-error);
}
-.trace-outcome--collection_timeout .trace-outcome__metrics > span:first-child strong {
- color: var(--color-warning);
-}
-
.trace-cause {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
@@ -141,11 +145,6 @@
background: #f2faf6;
}
-.trace-cause--collection-timeout {
- border-left-color: var(--color-warning);
- background: #fffaf0;
-}
-
.trace-cause__icon {
display: grid;
place-items: center;
@@ -162,10 +161,6 @@
color: var(--color-success);
}
-.trace-cause--collection-timeout .trace-cause__icon {
- color: var(--color-warning);
-}
-
.trace-cause__body {
display: grid;
min-width: 0;
@@ -184,6 +179,12 @@
font: 700 0.76rem/1.4 var(--font-mono);
}
+.trace-cause__body > small {
+ overflow-wrap: anywhere;
+ color: #7b5a56;
+ font: 600 0.6rem/1.4 var(--font-mono);
+}
+
.trace-cause__body > p {
margin: 0;
color: #6f4b48;
@@ -205,27 +206,75 @@
cursor: pointer;
}
+.trace-cause--success {
+ grid-template-columns: auto minmax(0, 1fr);
+ align-items: center;
+ padding-block: 10px;
+}
+
+.trace-cause--success .trace-cause__body > p {
+ color: #356b55;
+}
+
+.trace-collection-warning {
+ display: grid;
+ grid-template-columns: auto minmax(0, 1fr);
+ gap: 11px;
+ border-left: 3px solid var(--color-warning);
+ background: #fffaf0;
+ color: var(--color-warning);
+ padding: 11px 14px 11px 13px;
+}
+
+.trace-cause + .trace-collection-warning {
+ border-top: 1px solid #f1dfbd;
+}
+
+.trace-collection-warning svg {
+ margin-top: 2px;
+}
+
+.trace-collection-warning div {
+ min-width: 0;
+}
+
+.trace-collection-warning strong {
+ display: block;
+ color: #8a5100;
+ font-size: 0.7rem;
+}
+
+.trace-collection-warning p {
+ margin: 3px 0 0;
+ overflow-wrap: anywhere;
+ color: #765f3a;
+ font-size: 0.66rem;
+ line-height: 1.5;
+}
+
.trace-propagation {
display: flex;
align-items: center;
- flex-wrap: wrap;
gap: 4px;
+ min-width: 0;
margin-top: 6px;
color: #5b6572;
font: 600 0.6rem/1.4 var(--font-mono);
}
.trace-propagation b {
+ flex: 0 0 auto;
margin-right: 4px;
color: var(--color-ink);
font-family: var(--font-sans);
}
.trace-propagation span {
- display: inline-flex;
align-items: center;
min-width: 0;
- overflow-wrap: anywhere;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.waterfall-row.is-primary-failure {
@@ -497,22 +546,11 @@
}
.trace-outcome__metrics > span:nth-child(3) {
+ grid-column: 1 / -1;
border-top: 1px solid var(--color-line);
border-left: 0;
}
- .trace-outcome__metrics > span:nth-child(4) {
- border-top: 1px solid var(--color-line);
- }
-
- .trace-outcome__metrics > span:nth-child(n + 3) {
- border-top: 1px solid var(--color-line);
- }
-
- .trace-outcome__metrics > span:nth-child(odd) {
- border-left: 0;
- }
-
.trace-cause {
grid-template-columns: auto minmax(0, 1fr);
}
diff --git a/frontend/src/features/workbench/views/TraceView.tsx b/frontend/src/features/workbench/views/TraceView.tsx
index 07b8b78..1f00c6a 100644
--- a/frontend/src/features/workbench/views/TraceView.tsx
+++ b/frontend/src/features/workbench/views/TraceView.tsx
@@ -17,7 +17,7 @@ export function TraceView({ model }: TraceViewProps) {
const {
traceDetail, recentTraces, traceHistoryFilter, setTraceHistoryFilter,
filteredRecentTraces, selectTrace, selectedDomain, selectedApi,
- selectedApiMethodLabel, traceDisplayTone, traceDisplayStatus,
+ selectedApiMethodLabel,
runtimeSupported, externalTraceConfigured, analysisTarget, setActiveView,
traceOutcome, primaryFailureEvent, primaryFailureLabel,
failurePropagationPath, primaryFailureNodeId, setSelectedNodeId,
@@ -57,9 +57,6 @@ export function TraceView({ model }: TraceViewProps) {
: '프로젝트 구조에서 Agent 실행 설정을 먼저 생성하세요.'}
-