-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(traces): Trace page header with latency, status, and evaluations (…
- Loading branch information
1 parent
9f1acd3
commit 2a4d380
Showing
5 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ColorValue } from "@arizeai/components"; | ||
|
||
import { assertUnreachable } from "@phoenix/typeUtils"; | ||
|
||
import { SpanStatusCodeType } from "./types"; | ||
|
||
export function useSpanStatusCodeColor( | ||
statusCode: SpanStatusCodeType | ||
): ColorValue { | ||
switch (statusCode) { | ||
case "OK": | ||
return "success"; | ||
|
||
case "ERROR": | ||
return "danger"; | ||
break; | ||
case "UNSET": | ||
return "grey-500"; | ||
default: | ||
assertUnreachable(statusCode); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
"tiktoken", | ||
"tracedataset", | ||
"UMAP", | ||
"xlarge", | ||
"Zustand" | ||
], | ||
"flagWords": [ | ||
|