{duration}
diff --git a/apps/opik-frontend/src/components/ui/alert.tsx b/apps/opik-frontend/src/components/ui/alert.tsx
index f6a81bf55f..e9132a7d56 100644
--- a/apps/opik-frontend/src/components/ui/alert.tsx
+++ b/apps/opik-frontend/src/components/ui/alert.tsx
@@ -10,7 +10,7 @@ const alertVariants = cva(
variant: {
default: "bg-muted text-foreground-secondary",
destructive:
- "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
+ "border border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
},
},
defaultVariants: {
@@ -38,10 +38,7 @@ const AlertTitle = React.forwardRef<
>(({ className, ...props }, ref) => (
));
diff --git a/apps/opik-frontend/src/components/ui/tooltip.tsx b/apps/opik-frontend/src/components/ui/tooltip.tsx
index eff92372d6..493bd9e8e0 100644
--- a/apps/opik-frontend/src/components/ui/tooltip.tsx
+++ b/apps/opik-frontend/src/components/ui/tooltip.tsx
@@ -26,7 +26,7 @@ const TooltipArrow = React.forwardRef<
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
const tooltipVariants = cva(
- "comet-body-s z-50 max-w-[80vw] overflow-hidden rounded-md bg-tooltip text-tooltip-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "comet-body-s z-50 max-w-[80vw] overflow-hidden whitespace-pre-wrap rounded-md bg-tooltip text-tooltip-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
{
variants: {
variant: {
diff --git a/apps/opik-frontend/src/types/traces.ts b/apps/opik-frontend/src/types/traces.ts
index 75801e52c4..a7a40e2153 100644
--- a/apps/opik-frontend/src/types/traces.ts
+++ b/apps/opik-frontend/src/types/traces.ts
@@ -17,6 +17,12 @@ export interface UsageData {
total_tokens: number;
}
+export interface BaseTraceDataErrorInfo {
+ exception_type: string;
+ message?: string;
+ traceback: string;
+}
+
export interface BaseTraceData {
id: string;
name: string;
@@ -30,8 +36,8 @@ export interface BaseTraceData {
feedback_scores?: TraceFeedbackScore[];
tags: string[];
usage?: UsageData;
-
total_estimated_cost?: number;
+ error_info?: BaseTraceDataErrorInfo;
}
export interface Trace extends BaseTraceData {