|
1 | 1 | import { get } from "lodash"; |
2 | | -import { AlertTriangle, ChartNoAxesGantt, ListFilter, Minus, Plus, Search, Sparkles } from "lucide-react"; |
| 2 | +import { AlertTriangle, ChartNoAxesGantt, FileText,ListFilter, Minus, Plus, Search, Sparkles } from "lucide-react"; |
3 | 3 | import { useParams, usePathname, useRouter, useSearchParams } from "next/navigation"; |
4 | 4 | import React, { useCallback, useEffect, useMemo } from "react"; |
5 | 5 |
|
6 | 6 | import Header from "@/components/traces/trace-view/header"; |
7 | 7 | import { HumanEvaluatorSpanView } from "@/components/traces/trace-view/human-evaluator-span-view"; |
8 | 8 | import LangGraphView from "@/components/traces/trace-view/lang-graph-view"; |
| 9 | +import Metadata from "@/components/traces/trace-view/metadata"; |
9 | 10 | import Minimap from "@/components/traces/trace-view/minimap.tsx"; |
10 | 11 | import SearchSpansInput from "@/components/traces/trace-view/search-spans-input.tsx"; |
11 | 12 | import TraceViewStoreProvider, { |
@@ -436,6 +437,16 @@ const PureTraceView = ({ traceId, spanId, onClose, propsTrace }: TraceViewProps) |
436 | 437 | <ChartNoAxesGantt size={14} className="mr-1" /> |
437 | 438 | <span>Timeline</span> |
438 | 439 | </Button> |
| 440 | + <Button |
| 441 | + onClick={() => setTab("metadata")} |
| 442 | + variant="outline" |
| 443 | + className={cn("h-6 text-xs px-1.5", { |
| 444 | + "border-primary text-primary": tab === "metadata", |
| 445 | + })} |
| 446 | + > |
| 447 | + <FileText size={14} className="mr-1" /> |
| 448 | + <span>Metadata</span> |
| 449 | + </Button> |
439 | 450 | <Button |
440 | 451 | onClick={() => setTab("chat")} |
441 | 452 | variant="outline" |
@@ -486,6 +497,7 @@ const PureTraceView = ({ traceId, spanId, onClose, propsTrace }: TraceViewProps) |
486 | 497 | </div> |
487 | 498 | ) : ( |
488 | 499 | <> |
| 500 | + {tab === "metadata" && trace && <Metadata trace={trace} />} |
489 | 501 | {tab === "chat" && trace && ( |
490 | 502 | <Chat |
491 | 503 | trace={trace} |
|
0 commit comments