Skip to content

Commit

Permalink
feat(console): display environment name in report (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger authored Oct 14, 2023
1 parent b44aba1 commit d7db9c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/console/src/app/components/requests/RequestDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export const RequestDetails = (props: Props) => {
<Tag color="red">{response.status} Error</Tag>
),
},
{
title: "Environment",
description: props.metadata.environment,
},
{
title: "Duration",
description: ms(props.calculated.duration),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
Row,
Col,
Avatar,
Tag,
Tooltip,
Card,
} from "antd";
import OpenAILogo from "../../../assets/providers/openai-logo.svg";

Expand Down
1 change: 1 addition & 0 deletions libs/types/src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type ObservabilityReportMetadata = {
provider: Provider;
client?: string;
clientVersion?: string;
environment: string;
type: PromptExecutionType;
[key: string]: AllPrimitiveTypes;
};
Expand Down

0 comments on commit d7db9c1

Please sign in to comment.