Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): observation level badge in sentence case at one size (#18271)

Trang Nguyen24f0dc22bce9
diff --git a/web/src/features/traces/components/ObservationLevelBadge.tsx b/web/src/features/traces/components/ObservationLevelBadge.tsx
index 680f21f1fc..4697333785 100644
--- a/web/src/features/traces/components/ObservationLevelBadge.tsx
+++ b/web/src/features/traces/components/ObservationLevelBadge.tsx
@@ -15,16 +15,13 @@ const observationLevelBadgeColors: Record<
export function ObservationLevelBadge({
level,
- size,
}: {
level: DisplayedObservationLevel;
- size?: "sm";
}) {
return (
<Badge
color={observationLevelBadgeColors[level]}
- size={size}
- text={level}
+ text={level.charAt(0) + level.slice(1).toLowerCase()}
/>
);
}
diff --git a/web/src/features/traces/components/SpanContent.tsx b/web/src/features/traces/components/SpanContent.tsx
index 1aa840dd7c..af6514b08a 100644
--- a/web/src/features/traces/components/SpanContent.tsx
+++ b/web/src/features/traces/components/SpanContent.tsx
@@ -123,7 +123,7 @@ export function SpanContent({
{node.type !== "TRACE" &&
node.level &&
node.level !== "DEFAULT" && (
- <ObservationLevelBadge level={node.level} size="sm" />
+ <ObservationLevelBadge level={node.level} />
)}
</div>
</div>