Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
Fix: Getting started pages for the features, docker image build failures (#942)
Aman Agarwal9220220a39ed
diff --git a/src/Dockerfile b/src/Dockerfileindex ef29abbf..2393f522 100644--- a/src/Dockerfile+++ b/src/Dockerfile@@ -1,28 +1,32 @@-# Use an alpine as a base image-FROM alpine AS builder--# Build arguments for configurable versions-ARG OTEL_VERSION=v0.132.0-ARG OPAMP_SUPERVISOR_VERSION=v0.132.0-ARG TARGETARCH=arm64--# Installing node and npm-RUN apk add --update nodejs npm---# Installing extra packages-RUN apk add --no-cache python3 py3-pip pipx rust cargo build-base+# Python builder using Debian for fast pre-compiled wheels+FROM python:3.11-slim-bullseye AS python-builder+# Install minimal dependencies+RUN apt-get update && apt-get install -y --no-install-recommends \+ gcc \+ && rm -rf /var/lib/apt/lists/*# Create a virtual environmentRUN python3 -m venv /app/client/venv-# Install litellm inside the virtual environment+# Install litellm (gets pre-compiled grpcio wheels - installs in ~30 seconds)RUN /app/client/venv/bin/pip install --no-cache-dir litellm+# Clean up unnecessary filesRUN find /app/client/venv -name '*.pyc' -delete && \- find /app/client/venv -name '__pycache__' -type d -exec rm -r {} ++ find /app/client/venv -name '__pycache__' -type d -exec rm -r {} + && \+ find /app/client/venv -type d -name "tests" -exec rm -rf {} + 2>/dev/null || true && \+ find /app/client/venv -type d -name "test" -exec rm -rf {} + 2>/dev/null || true++# Node.js builder+FROM alpine AS builder++# Installing node and npm+RUN apk add --update nodejs npm++# Installing extra packages+RUN apk add --no-cache rust cargo build-base# Set the working directory in the containerWORKDIR /app/client@@ -46,12 +50,13 @@ COPY ./opamp-server/ ./# Build the opamp-server binaryRUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o opamp-server .+# OpenTelemetry Collector Contrib downloadFROM alpine AS otel-downloader# Accept build argumentsARG OTEL_VERSION=v0.132.4-ARG OPAMP_SUPERVISOR_VERSION=v0.126.0+ARG OPAMP_SUPERVISOR_VERSION=v0.132.0ARG TARGETARCH=arm64# Install curl for downloading binaries@@ -71,20 +76,30 @@ RUN curl --proto '=https' --tlsv1.2 -fL -o opampsupervisor \chmod +x opampsupervisor-# Use a smaller image for production-FROM alpine--# Installing extra packages-RUN apk add nodejs bash openssl python3+# Final runtime image - Use slim-bullseye (Debian) for compatibility+FROM python:3.11-slim-bullseye+# Install Node.js from NodeSource repository+RUN apt-get update && apt-get install -y --no-install-recommends \+ curl \+ gnupg \+ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \+ && apt-get install -y --no-install-recommends \+ nodejs \+ bash \+ openssl \+ ca-certificates \+ cron \+ && rm -rf /var/lib/apt/lists/*# Set the working directory in the containerWORKDIR /app/client-# Copy only necessary files from the builder stage+# Copy only necessary files from the builder stages++# Copying python virtual environment from Debian builder (compatible!)+COPY --from=python-builder /app/client/venv ./venv-# Copying python virtual environment-COPY --from=builder /app/client/venv ./venv# Copying the standalone next.js buildCOPY --from=builder /app/client/.next/standalone ./# Standalone build doesn't copy public, static, prisma, scriptsdiff --git a/src/client/package-lock.json b/src/client/package-lock.jsonindex d463c7f3..468bd3e1 100644--- a/src/client/package-lock.json+++ b/src/client/package-lock.json@@ -1,12 +1,12 @@{"name": "openlit",- "version": "1.15.1",+ "version": "1.15.2","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "openlit",- "version": "1.15.1",+ "version": "1.15.2","dependencies": {"@anthropic-ai/sdk": "^0.21.1","@clickhouse/client": "^1.1.0",diff --git a/src/client/package.json b/src/client/package.jsonindex 1767f8a6..116d2b2f 100644--- a/src/client/package.json+++ b/src/client/package.json@@ -1,6 +1,6 @@{"name": "openlit",- "version": "1.15.1",+ "version": "1.15.2","private": true,"scripts": {"dev": "next dev",diff --git a/src/client/scripts/entrypoint.sh b/src/client/scripts/entrypoint.shindex b38e8b51..e777f6bd 100644--- a/src/client/scripts/entrypoint.sh+++ b/src/client/scripts/entrypoint.sh@@ -37,7 +37,7 @@ echo "INIT_DB_PORT=${INIT_DB_PORT}" >> /etc/environmentecho "INIT_DB_DATABASE=${INIT_DB_DATABASE}" >> /etc/environment# Load the environment variables-source /etc/environment+. /etc/environment# Run Prisma migrations and generate prisma clientprisma migrate deploy@@ -47,7 +47,7 @@ prisma generateprisma db seed# Run crond in the background-crond &+service cron start# Set OpAMP environment variables for entrypointexport OPAMP_ENVIRONMENT=${OPAMP_ENVIRONMENT:-production}diff --git a/src/client/src/app/(playground)/exceptions/page.tsx b/src/client/src/app/(playground)/exceptions/page.tsxindex 927babce..36caeca9 100644--- a/src/client/src/app/(playground)/exceptions/page.tsx+++ b/src/client/src/app/(playground)/exceptions/page.tsx@@ -16,6 +16,7 @@ import DataTable from "@/components/data-table/table";import { columns } from "@/components/(playground)/exceptions/columns";import { getVisibilityColumnsOfPage } from "@/selectors/page";import TracesFilter from "@/components/(playground)/filter/traces-filter";+import ExceptionsGettingStarted from "@/components/(playground)/getting-started/tracing";function ExceptionPage() {const filter = useRootStore(getFilterDetails);@@ -26,6 +27,15 @@ function ExceptionPage() {};const pingStatus = useRootStore(getPingStatus);const { data, fireRequest, isFetched, isLoading } = useFetchWrapper();+ const { data: existData, fireRequest: fireExistRequest, isFetched: isFetchedExist, isLoading: isLoadingExist } = useFetchWrapper();+ useEffect(() => {+ fireExistRequest({+ requestType: "POST",+ url: "/api/metrics/request/exist",+ });+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);+const visibilityColumns = useRootStore((state) =>getVisibilityColumnsOfPage(state, "exception"));@@ -41,7 +51,7 @@ function ExceptionPage() {});},});- }, [filter]);+ }, [filter, fireRequest]);useEffect(() => {if (@@ -50,10 +60,21 @@ function ExceptionPage() {pingStatus === "success")fetchData();- }, [filter, fetchData, pingStatus]);+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [filter, pingStatus]);const normalizedData = ((data as any)?.records || []).map(normalizeTrace);++ // Show getting started when there's no trace data AND initial fetch is complete+ if (existData === false && !isLoadingExist && isFetchedExist) {+ return (+ <div className="flex flex-col w-full h-full overflow-auto">+ <ExceptionsGettingStarted />+ </div>+ );+ }+return (<><TracesFilterdiff --git a/src/client/src/app/(playground)/openground/[id]/page.tsx b/src/client/src/app/(playground)/openground/[id]/page.tsxindex fa37ca14..91b0d6e1 100644--- a/src/client/src/app/(playground)/openground/[id]/page.tsx+++ b/src/client/src/app/(playground)/openground/[id]/page.tsx@@ -51,10 +51,7 @@ export default function OpengroundRequest({return (<div className="flex flex-col w-full h-full gap-4">- <OpengroundHeader- title={`Request id : ${updatedData.id}`}- validateResponse={false}- />+ <OpengroundHeader validateResponse={false} /><RequestInfo data={updatedData} /><div className="flex w-full h-full bg-stone-100 grow dark:bg-stone-900 overflow-auto transition-all relative gap-1">{requestMeta.selectedProviders?.map(diff --git a/src/client/src/app/(playground)/openground/new/page.tsx b/src/client/src/app/(playground)/openground/new/page.tsxindex 9f50d658..d69500f1 100644--- a/src/client/src/app/(playground)/openground/new/page.tsx+++ b/src/client/src/app/(playground)/openground/new/page.tsx@@ -7,7 +7,7 @@ import OpengroundHeader from "@/components/(playground)/openground/header";export default function Openground() {return (<div className="flex flex-col w-full h-full gap-4">- <OpengroundHeader title="Compare your providers" validateResponse />+ <OpengroundHeader validateResponse /><Providers /><PromptInput /></div>diff --git a/src/client/src/app/(playground)/openground/page.tsx b/src/client/src/app/(playground)/openground/page.tsxindex 8561ff7b..449754bf 100644--- a/src/client/src/app/(playground)/openground/page.tsx+++ b/src/client/src/app/(playground)/openground/page.tsx@@ -10,6 +10,7 @@ import { OpengroundRequest, OpengroundStats } from "@/types/openground";import { Columns } from "@/components/data-table/columns";import { jsonParse } from "@/utils/json";import DataTable from "@/components/data-table/table";+import OpengroundGettingStarted from "@/components/(playground)/getting-started/openground";const columns: Columns<string, OpengroundRequest> = {prompt: {@@ -80,9 +81,17 @@ export default function Openground() {fetchData();}, []);+ if (!data?.length && !isLoading && isFetched) {+ return (+ <div className="flex flex-col items-center mx-auto p-8 overflow-auto">+ <OpengroundGettingStarted />+ </div>+ );+ }+return (<div className="flex flex-col w-full h-full gap-4">- <OpengroundHeader title="Openground Requests" validateResponse={false} />+ <OpengroundHeader validateResponse={false} /><DataTablecolumns={columns}data={data || []}diff --git a/src/client/src/app/(playground)/prompt-hub/[id]/page.tsx b/src/client/src/app/(playground)/prompt-hub/[id]/page.tsxindex d9deedf0..99c965e4 100644--- a/src/client/src/app/(playground)/prompt-hub/[id]/page.tsx+++ b/src/client/src/app/(playground)/prompt-hub/[id]/page.tsx@@ -1,5 +1,6 @@"use client";import PromptForm from "@/components/(playground)/prompt-hub/form";+import PromptHubHeader from "@/components/(playground)/prompt-hub/header";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";@@ -41,9 +42,8 @@ export default function PromptHub() {const fetchData = useCallback(async () => {fireRequest({requestType: "GET",- url: `/api/prompt/get/${params.id}${- version ? "?version=" + version : ""- }`,+ url: `/api/prompt/get/${params.id}${version ? "?version=" + version : ""+ }`,responseDataKey: "data.[0]",failureCb: (err?: string) => {toast.error(err || `Cannot connect to server!`, {@@ -116,181 +116,183 @@ export default function PromptHub() {);return (- <div className="grid grid-cols-3 w-full h-full overflow-hidden gap-4">- <Card className="grow col-span-2 overflow-hidden flex flex-col border border-stone-200 dark:border-stone-800">- <CardHeader className="p-4">- <CardTitle>- <div className="flex w-full">- <div className="flex flex-col grow">- <div className="flex items-center text-2xl font-semibold text-stone-900 dark:text-stone-100 gap-4">- <h1>{data.name}</h1>- {data.status === PromptVersionStatus.DRAFT && (- <Badge- variant="default"- className="transition-none py-0 text-xs"- >- Draft- </Badge>- )}- </div>- <div className="flex items-center text-stone-500 dark:text-stone-400 gap-8 mt-2">- <div className="flex items-center">- <Rocket className="mr-2 h-4 w-4" />- <span className="text-xs">- {data.version}- </span>- </div>- <div className="flex items-center">- <CalendarDays className="mr-2 h-4 w-4" />- <span className="text-xs">- Published on {format(data.updatedAt, "MMM do, y")}- </span>- </div>- </div>- </div>- <div className="flex items-center">- {data.versionId === draftVersion?.versionId ? (- <PromptForm- versionData={draftVersion}- successCallback={successCallback}- >- <Button- variant="secondary"- className="bg-primary hover:bg-primary dark:bg-primary dark:hover:bg-primary text-stone-100 dark:text-stone-100 px-8 py-2 h-auto py-1 rounded-sm"- >- Publish Version- </Button>- </PromptForm>- ) : null}- {data.version === latestVersion?.version &&- !draftVersion?.version ? (- <PromptForm- versionData={latestVersion}- successCallback={successCallback}- >- <Button- variant="secondary"- className="bg-primary hover:bg-primary dark:bg-primary dark:hover:bg-primary text-stone-100 dark:text-stone-100 px-8 py-2 h-auto py-1 rounded-sm"- >- Create New Version- </Button>- </PromptForm>- ) : null}- </div>- </div>- </CardTitle>- </CardHeader>- <CardContent className="flex flex-col w-full p-4 pt-0 gap-4 overflow-auto scrollbar-hidden">- {tags.length > 0 ? (- <div className="flex gap-2">- {tags.map((tag: string) => (- <Badge- key={tag}- className="rounded-pill bg-stone-500 transition-none"- >- {tag}- </Badge>- ))}- </div>- ) : null}- <div className="flex flex-col w-full">- <h3 className="text-sm text-stone-500 mb-2 dark:text-stone-400">- Prompt- </h3>- <div className="flex bg-stone-100 dark:bg-stone-900 text-stone-500 dark:text-stone-300 p-4 gap-8 whitespace-pre-wrap">- {unescapeString(data.prompt)}- </div>- </div>- {metaPropertiesMap.length > 0 ? (- <div className="flex flex-col gap-2">- <h3 className="text-sm text-stone-500 dark:text-stone-400">- Meta Properties- </h3>- <div className="rounded-sm border border-stone-200 dark:border-stone-700">- <Table>- <TableHeader className="bg-stone-100 dark:bg-stone-800">- <TableRow>- <TableHead className="h-8 text-stone-400">Key</TableHead>- <TableHead className="h-8 text-stone-400">Value</TableHead>- </TableRow>- </TableHeader>- <TableBody>- {metaPropertiesMap.map(([itemKey, value]: string[]) => (- <TableRow- key={itemKey}- className="bg-stone-50 dark:bg-stone-900 data-[state=selected]:bg-stone-50 dark:data-[state=selected]:bg-stone-900 text-stone-600 dark:text-stone-300"+ <div className="flex flex-col w-full h-full gap-4">+ <PromptHubHeader />+ <div className="grid grid-cols-3 w-full h-full overflow-hidden gap-4">+ <Card className="grow col-span-2 overflow-hidden flex flex-col border border-stone-200 dark:border-stone-800">+ <CardHeader className="p-4">+ <CardTitle>+ <div className="flex w-full">+ <div className="flex flex-col grow">+ <div className="flex items-center text-2xl font-semibold text-stone-900 dark:text-stone-100 gap-4">+ <h1>{data.name}</h1>+ {data.status === PromptVersionStatus.DRAFT && (+ <Badge+ variant="default"+ className="transition-none py-0 text-xs"+ >+ Draft+ </Badge>+ )}+ </div>+ <div className="flex items-center text-stone-500 dark:text-stone-400 gap-8 mt-2">+ <div className="flex items-center">+ <Rocket className="mr-2 h-4 w-4" />+ <span className="text-xs">+ {data.version}+ </span>+ </div>+ <div className="flex items-center">+ <CalendarDays className="mr-2 h-4 w-4" />+ <span className="text-xs">+ Published on {format(data.updatedAt, "MMM do, y")}+ </span>+ </div>+ </div>+ </div>+ <div className="flex items-center">+ {data.versionId === draftVersion?.versionId ? (+ <PromptForm+ versionData={draftVersion}+ successCallback={successCallback}>- <TableCell className="p-0 px-4 align-middle font-medium h-10">- {itemKey}- </TableCell>- <TableCell className="p-0 px-4 align-middle h-10">- {value}- </TableCell>- </TableRow>- ))}- </TableBody>- </Table>- </div>- </div>- ) : null}- </CardContent>- </Card>- <Card className="border border-stone-200 dark:border-stone-800">- <CardHeader className="p-4">- <CardTitle className="text-md">Versions</CardTitle>- </CardHeader>- <CardContent className="p-4 pt-0">- <div className="flex flex-col w-full gap-4 overflow-auto scrollbar-hidden">- {data.versions.map((versionItem) => (- <Link- href={`/prompt-hub/${params.id}${- versionItem.status === PromptVersionStatus.DRAFT- ? ""- : `?version=${versionItem.version}`- }`}- key={versionItem.versionId}- className="flex w-full items-center text-sm gap-2 text-stone-500 dark:text-stone-300"- >- <div className="flex w-min gap-2">- {versionItem.version}-- {versionItem.versionId === latestVersion?.versionId ? (- <Badge- variant="outline"- className="rounded-pill text-xs text-stone-500 dark:text-stone-300 dark:border-stone-600 font-light transition-none"- >- latest- </Badge>- ) : null}- {versionItem.versionId === draftVersion?.versionId ? (+ <Button+ variant="secondary"+ className="bg-primary hover:bg-primary dark:bg-primary dark:hover:bg-primary text-stone-100 dark:text-stone-100 px-8 py-2 h-auto py-1 rounded-sm"+ >+ Publish Version+ </Button>+ </PromptForm>+ ) : null}+ {data.version === latestVersion?.version &&+ !draftVersion?.version ? (+ <PromptForm+ versionData={latestVersion}+ successCallback={successCallback}+ >+ <Button+ variant="secondary"+ className="bg-primary hover:bg-primary dark:bg-primary dark:hover:bg-primary text-stone-100 dark:text-stone-100 px-8 py-2 h-auto py-1 rounded-sm"+ >+ Create New Version+ </Button>+ </PromptForm>+ ) : null}+ </div>+ </div>+ </CardTitle>+ </CardHeader>+ <CardContent className="flex flex-col w-full p-4 pt-0 gap-4 overflow-auto scrollbar-hidden">+ {tags.length > 0 ? (+ <div className="flex gap-2">+ {tags.map((tag: string) => (<Badge- variant="outline"- className="rounded-pill text-xs text-stone-500 dark:text-stone-300 dark:border-stone-600 font-light transition-none"+ key={tag}+ className="rounded-pill bg-stone-500 transition-none">- Draft+ {tag}</Badge>- ) : null}+ ))}</div>- <hr className="flex-1 border-stone-400 dark:border-stone-500 border-dotted" />- <div className="flex gap-1 text-xs items-center shrink-0">- <CloudDownload className="w-4" />- {versionItem.totalDownloads}+ ) : null}+ <div className="flex flex-col w-full">+ <h3 className="text-sm text-stone-500 mb-2 dark:text-stone-400">+ Prompt+ </h3>+ <div className="flex bg-stone-100 dark:bg-stone-900 text-stone-500 dark:text-stone-300 p-4 gap-8 whitespace-pre-wrap">+ {unescapeString(data.prompt)}</div>- ...- <div className="w-max">- {formatDistance(- new Date(versionItem.updatedAt),- new Date().toISOString().slice(0, -1),- {- addSuffix: true,- }- )}+ </div>+ {metaPropertiesMap.length > 0 ? (+ <div className="flex flex-col gap-2">+ <h3 className="text-sm text-stone-500 dark:text-stone-400">+ Meta Properties+ </h3>+ <div className="rounded-sm border border-stone-200 dark:border-stone-700">+ <Table>+ <TableHeader className="bg-stone-100 dark:bg-stone-800">+ <TableRow>+ <TableHead className="h-8 text-stone-400">Key</TableHead>+ <TableHead className="h-8 text-stone-400">Value</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {metaPropertiesMap.map(([itemKey, value]: string[]) => (+ <TableRow+ key={itemKey}+ className="bg-stone-50 dark:bg-stone-900 data-[state=selected]:bg-stone-50 dark:data-[state=selected]:bg-stone-900 text-stone-600 dark:text-stone-300"+ >+ <TableCell className="p-0 px-4 align-middle font-medium h-10">+ {itemKey}+ </TableCell>+ <TableCell className="p-0 px-4 align-middle h-10">+ {value}+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ </div></div>- </Link>- ))}- </div>- </CardContent>- </Card>+ ) : null}+ </CardContent>+ </Card>+ <Card className="border border-stone-200 dark:border-stone-800">+ <CardHeader className="p-4">+ <CardTitle className="text-md">Versions</CardTitle>+ </CardHeader>+ <CardContent className="p-4 pt-0">+ <div className="flex flex-col w-full gap-4 overflow-auto scrollbar-hidden">+ {data.versions.map((versionItem) => (+ <Link+ href={`/prompt-hub/${params.id}${versionItem.status === PromptVersionStatus.DRAFT+ ? ""+ : `?version=${versionItem.version}`+ }`}+ key={versionItem.versionId}+ className="flex w-full items-center text-sm gap-2 text-stone-500 dark:text-stone-300"+ >+ <div className="flex w-min gap-2">+ {versionItem.version}++ {versionItem.versionId === latestVersion?.versionId ? (+ <Badge+ variant="outline"+ className="rounded-pill text-xs text-stone-500 dark:text-stone-300 dark:border-stone-600 font-light transition-none"+ >+ latest+ </Badge>+ ) : null}+ {versionItem.versionId === draftVersion?.versionId ? (+ <Badge+ variant="outline"+ className="rounded-pill text-xs text-stone-500 dark:text-stone-300 dark:border-stone-600 font-light transition-none"+ >+ Draft+ </Badge>+ ) : null}+ </div>+ <hr className="flex-1 border-stone-400 dark:border-stone-500 border-dotted" />+ <div className="flex gap-1 text-xs items-center shrink-0">+ <CloudDownload className="w-4" />+ {versionItem.totalDownloads}+ </div>+ ...+ <div className="w-max">+ {formatDistance(+ new Date(versionItem.updatedAt),+ new Date().toISOString().slice(0, -1),+ {+ addSuffix: true,+ }+ )}+ </div>+ </Link>+ ))}+ </div>+ </CardContent>+ </Card>+ </div></div>);}diff --git a/src/client/src/app/(playground)/prompt-hub/layout.tsx b/src/client/src/app/(playground)/prompt-hub/layout.tsxdeleted file mode 100644index f2d27564..00000000--- a/src/client/src/app/(playground)/prompt-hub/layout.tsx+++ /dev/null@@ -1,17 +0,0 @@-"use client";-import PromptHubHeader from "@/components/(playground)/prompt-hub/header";-import { useParams } from "next/navigation";--export default function PromptLayout({- children,-}: {- children: React.ReactNode;-}) {- const params = useParams();- return (- <div className="flex flex-col w-full h-full gap-4">- <PromptHubHeader createNew={!params.id} />- {children}- </div>- );-}diff --git a/src/client/src/app/(playground)/prompt-hub/page.tsx b/src/client/src/app/(playground)/prompt-hub/page.tsxindex 28fc6756..bb398ca8 100644--- a/src/client/src/app/(playground)/prompt-hub/page.tsx+++ b/src/client/src/app/(playground)/prompt-hub/page.tsx@@ -12,6 +12,8 @@ import ConfirmationModal from "@/components/common/confirmation-modal";import DataTable from "@/components/data-table/table";import { Columns } from "@/components/data-table/columns";import { PromptList } from "@/types/prompt";+import PromptsGettingStarted from "@/components/(playground)/getting-started/prompts";+import PromptHubHeader from "@/components/(playground)/prompt-hub/header";const columns: Columns<string, PromptList> = {name: {@@ -116,23 +118,34 @@ export default function PromptHub() {}}, [pingStatus]);+ if (!data?.length && !isLoading && isFetched) {+ return (+ <div className="flex flex-col items-center mx-auto p-8 overflow-auto">+ <PromptsGettingStarted />+ </div>+ );+ }+return (- <DataTable- columns={columns}- data={data || []}- isFetched={isFetched || pingStatus === "failure"}- isLoading={isLoading || isDeleting}- visibilityColumns={{- name: true,- createdBy: true,- latestVersion: true,- downloads: true,- lastReleasedOn: true,- actions: true- }}- extraFunctions={{- handleDelete: deletePrompt,- }}- />+ <div className="flex flex-col w-full h-full gap-4">+ <PromptHubHeader createNew />+ <DataTable+ columns={columns}+ data={data || []}+ isFetched={isFetched || pingStatus === "failure"}+ isLoading={isLoading || isDeleting}+ visibilityColumns={{+ name: true,+ createdBy: true,+ latestVersion: true,+ downloads: true,+ lastReleasedOn: true,+ actions: true+ }}+ extraFunctions={{+ handleDelete: deletePrompt,+ }}+ />+ </div>);}diff --git a/src/client/src/app/(playground)/requests/page.tsx b/src/client/src/app/(playground)/requests/page.tsxindex 88abdd07..0b39d7b3 100644--- a/src/client/src/app/(playground)/requests/page.tsx+++ b/src/client/src/app/(playground)/requests/page.tsx@@ -15,6 +15,7 @@ import { columns } from "@/components/(playground)/request/columns";import { normalizeTrace } from "@/helpers/client/trace";import { getVisibilityColumnsOfPage } from "@/selectors/page";import TracesFilter from "@/components/(playground)/filter/traces-filter";+import TracingGettingStarted from "@/components/(playground)/getting-started/tracing";function RequestPage() {const [, updateRequest] = useRequest();@@ -29,6 +30,14 @@ function RequestPage() {);const pingStatus = useRootStore(getPingStatus);const { data, fireRequest, isFetched, isLoading } = useFetchWrapper();+ const { data: existData, fireRequest: fireExistRequest, isFetched: isFetchedExist, isLoading: isLoadingExist } = useFetchWrapper();+ useEffect(() => {+ fireExistRequest({+ requestType: "POST",+ url: "/api/metrics/request/exist",+ });+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);const fetchData = useCallback(async () => {fireRequest({body: JSON.stringify(filter),@@ -40,7 +49,7 @@ function RequestPage() {});},});- }, [filter]);+ }, [filter, fireRequest]);useEffect(() => {if (@@ -49,10 +58,20 @@ function RequestPage() {pingStatus === "success")fetchData();- }, [filter, fetchData, pingStatus]);+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [filter, pingStatus]);const normalizedData = ((data as any)?.records || []).map(normalizeTrace);+ // Show getting started when there's no trace data AND initial fetch is complete+ if (existData === false && !isLoadingExist && isFetchedExist) {+ return (+ <div className="flex flex-col w-full h-full overflow-auto">+ <TracingGettingStarted />+ </div>+ );+ }+return (<><TracesFilterdiff --git a/src/client/src/app/(playground)/settings/evaluation/page.tsx b/src/client/src/app/(playground)/settings/evaluation/page.tsxindex 986e2eb7..9f7ed019 100644--- a/src/client/src/app/(playground)/settings/evaluation/page.tsx+++ b/src/client/src/app/(playground)/settings/evaluation/page.tsx@@ -59,12 +59,14 @@ function ModifyEvaluationSettings({return;}+ const autoValue = formElement.auto instanceof HTMLInputElement ? formElement.auto.checked : formElement.auto instanceof RadioNodeList ? (Array.from(formElement.auto).find(item => ((item as any).checked)) as any)?.checked : false;+const bodyObject = {...(evaluation || {}),provider: (formElement.provider as any)?.value,model: (formElement.model as any)?.value,vaultId: (formElement.vaultId as any)?.value,- auto: (formElement.auto as any)?.checked,+ auto: autoValue,recurringTime: (formElement.recurringTime as any)?.value,};diff --git a/src/client/src/app/(playground)/vault/page.tsx b/src/client/src/app/(playground)/vault/page.tsxindex 8b517af8..5b8e5328 100644--- a/src/client/src/app/(playground)/vault/page.tsx+++ b/src/client/src/app/(playground)/vault/page.tsx@@ -8,11 +8,11 @@ import { getPingStatus } from "@/selectors/database-config";import { EditIcon, TrashIcon } from "lucide-react";import ConfirmationModal from "@/components/common/confirmation-modal";import VaultHeader from "@/components/(playground)/vault/header";-import { useParams } from "next/navigation";import SecretForm from "@/components/(playground)/vault/form";import { Secret } from "@/types/vault";import { Columns } from "@/components/data-table/columns";import DataTable from "@/components/data-table/table";+import SecretsGettingStarted from "@/components/(playground)/getting-started/secrets";const columns: Columns<string, Secret> = {key: {@@ -58,7 +58,6 @@ const columns: Columns<string, Secret> = {export default function Vault() {const { data, fireRequest, isFetched, isLoading } = useFetchWrapper<Secret[]>();- const params = useParams();const { fireRequest: fireDeleteRequest, isLoading: isDeleting } =useFetchWrapper();const pingStatus = useRootStore(getPingStatus);@@ -102,9 +101,17 @@ export default function Vault() {}}, [pingStatus]);+ if (!data?.length && !isLoading && isFetched) {+ return (+ <div className="flex flex-col items-center mx-auto p-8 overflow-auto">+ <SecretsGettingStarted successCallback={fetchData} />+ </div>+ );+ }+return (<div className="flex flex-col w-full h-full gap-4">- <VaultHeader createNew={!params.id} successCallback={fetchData} />+ <VaultHeader successCallback={fetchData} /><DataTablecolumns={columns}data={data || []}diff --git a/src/client/src/app/api/metrics/request/exist/route.ts b/src/client/src/app/api/metrics/request/exist/route.tsnew file mode 100644index 00000000..6a4baeaa--- /dev/null+++ b/src/client/src/app/api/metrics/request/exist/route.ts@@ -0,0 +1,11 @@+import { getRequestExist } from "@/lib/platform/request";++export async function POST() {+ const res = await getRequestExist();+ const { data } = res;+ if ((data as any[])?.[0]?.total_requests > 0) {+ return Response.json(true);+ }++ return Response.json(false);+}diff --git a/src/client/src/components/(playground)/getting-started/openground/index.tsx b/src/client/src/components/(playground)/getting-started/openground/index.tsxnew file mode 100644index 00000000..d3f56d66--- /dev/null+++ b/src/client/src/components/(playground)/getting-started/openground/index.tsx@@ -0,0 +1,57 @@+import React from 'react';+import { Card, CardContent, CardTitle } from '@/components/ui/card';+import OpengroundHeader from '../../openground/header';++export default function OpengroundGettingStarted() {+ return (+ <div className="flex flex-col items-center p-8">+ <div className="max-w-4xl w-full">+ <h1 className="text-3xl font-semibold text-center mb-6 text-stone-800 dark:text-stone-200">+ Get Started with OpenGround+ </h1>+ <p className="text-center text-md mb-12 text-stone-500 dark:text-stone-500">+ Experiment and test different LLM configurations, prompts, and parameters.+ Compare outputs side-by-side to find the optimal setup for your use case.+ </p>++ <OpengroundHeader validateResponse={false} className='flex mb-8 items-center justify-center' />++ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">+ {[{+ icon: "π¬",+ title: "Test Configurations",+ description: "Experiment with different LLM models, parameters, and settings to find the best configuration for your specific use case.",+ },+ {+ icon: "π",+ title: "Compare Results",+ description: "View outputs from different configurations side-by-side to make informed decisions about your LLM setup.",+ },+ {+ icon: "π",+ title: "Prompt Testing",+ description: "Test and refine your prompts iteratively to achieve better results and more accurate AI responses.",+ },+ {+ icon: "β‘",+ title: "Quick Iteration",+ description: "Rapidly test multiple variations to optimize your LLM application before deploying to production.",+ }+ ].map((item) => (+ <Card className='border' key={item.title}>+ <CardTitle className='p-6 gap-2 flex items-center text-stone-700 dark:text-stone-300'>+ <span className="text-2xl">{item.icon}</span>+ <span>{item.title}</span>+ </CardTitle>+ <CardContent>+ <p className="text-stone-500 dark:text-stone-400">+ {item.description}+ </p>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ </div>+ );+}diff --git a/src/client/src/components/(playground)/getting-started/prompts/index.tsx b/src/client/src/components/(playground)/getting-started/prompts/index.tsxnew file mode 100644index 00000000..5d21680f--- /dev/null+++ b/src/client/src/components/(playground)/getting-started/prompts/index.tsx@@ -0,0 +1,56 @@+import React from 'react';+import { Card, CardContent, CardTitle } from '@/components/ui/card';+import PromptHubHeader from '../../prompt-hub/header';++export default function PromptsGettingStarted() {+ return (+ <div className="flex flex-col items-center p-8">+ <div className="max-w-4xl w-full">+ <h1 className="text-3xl font-semibold text-center mb-6 text-stone-800 dark:text-stone-200">+ Get Started with Prompt Hub+ </h1>+ <p className="text-center text-md mb-6 text-stone-500 dark:text-stone-500">+ Centralized prompt management system to version, deploy, and collaborate on prompts.+ Track prompt usage, manage variables, and easily retrieve prompts across your applications.+ </p>+ <PromptHubHeader createNew className="grid grid-cols-2 w-full items-center justify-center gap-6 mb-8 [&>*:first-child]:justify-self-end [&>*:nth-child(2)]:justify-self-start" />++ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">+ {[{+ icon: "π",+ title: "Version Control",+ description: "Track and manage different versions of your prompts with complete version history and rollback capabilities.",+ },+ {+ icon: "π",+ title: "Variable Support",+ description: "Create dynamic prompts with variable placeholders for flexible and reusable prompt templates.",+ },+ {+ icon: "π₯",+ title: "Team Collaboration",+ description: "Collaborate with your team on prompt development and track who created and modified prompts.",+ },+ {+ icon: "π",+ title: "Usage Tracking",+ description: "Monitor prompt downloads and usage across your applications to understand which prompts are most valuable.",+ }+ ].map((item) => (+ <Card className='border' key={item.title}>+ <CardTitle className='p-6 gap-2 flex items-center text-stone-700 dark:text-stone-300 text-xl'>+ <span>{item.icon}</span>+ <span>{item.title}</span>+ </CardTitle>+ <CardContent>+ <p className="text-stone-500 dark:text-stone-400">+ {item.description}+ </p>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ </div>+ );+}diff --git a/src/client/src/components/(playground)/getting-started/secrets/index.tsx b/src/client/src/components/(playground)/getting-started/secrets/index.tsxnew file mode 100644index 00000000..b1c801bd--- /dev/null+++ b/src/client/src/components/(playground)/getting-started/secrets/index.tsx@@ -0,0 +1,60 @@+import React from 'react';+import { Card, CardContent, CardTitle } from '@/components/ui/card';+import VaultHeader from '../../vault/header';++export default function SecretsGettingStarted({+ successCallback+}: {+ successCallback?: () => void;+}) {+ return (+ <div className="flex flex-col items-center p-8">+ <div className="max-w-4xl w-full">+ <h1 className="text-3xl font-semibold text-center mb-6 text-stone-800 dark:text-stone-200">+ Get Started with Vault+ </h1>+ <p className="text-center text-md mb-12 text-stone-500 dark:text-stone-500">+ Securely store and access sensitive information including LLM API keys and credentials.+ Access your secrets through authenticated API endpoints with full audit tracking.+ </p>+ <VaultHeader successCallback={successCallback} className="grid grid-cols-2 w-full items-center justify-center gap-6 mb-8 [&>*:first-child]:justify-self-end [&>*:nth-child(2)]:justify-self-start" />++ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">+ {[{+ icon: "π",+ title: "Secure Storage",+ description: "Store LLM API keys and sensitive credentials securely with encryption and access controls.",+ },+ {+ icon: "π",+ title: "API Access",+ description: "Access your secrets through authenticated API endpoints for seamless integration with your applications.",+ },+ {+ icon: "π€",+ title: "User Tracking",+ description: "Track who created and updated each secret for complete accountability and transparency.",+ },+ {+ icon: "β°",+ title: "Update History",+ description: "Monitor when secrets were last updated to ensure your credentials remain current and secure.",+ }+ ].map((item) => (+ <Card className='border' key={item.title}>+ <CardTitle className='p-6 gap-2 flex items-center text-stone-700 dark:text-stone-300'>+ <span className="text-2xl">{item.icon}</span>+ <span>{item.title}</span>+ </CardTitle>+ <CardContent>+ <p className="text-stone-500 dark:text-stone-400">+ {item.description}+ </p>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ </div>+ );+}diff --git a/src/client/src/components/(playground)/getting-started/tracing/index.tsx b/src/client/src/components/(playground)/getting-started/tracing/index.tsxnew file mode 100644index 00000000..6c4cfdf8--- /dev/null+++ b/src/client/src/components/(playground)/getting-started/tracing/index.tsx@@ -0,0 +1,232 @@+"use client";+import React, { memo } from 'react';+import { Card, CardContent, CardTitle } from '@/components/ui/card';+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import CodeBlock from "@/components/common/code-block";++export default memo(function TracingGettingStarted() {+ return (+ <div className="flex flex-col items-center p-8 w-full">+ <div className="w-full">+ <h1 className="text-3xl font-semibold text-center mb-4 text-stone-800 dark:text-stone-200">+ Get Started with Observability+ </h1>+ <p className="text-center text-md mb-8 text-stone-500 dark:text-stone-500">+ OpenTelemetry-native auto-instrumentation to trace LLMs, agents, vector databases and GPUs with zero-code.+ Visualize application flow, identify performance bottlenecks, and track errors with detailed stack traces.+ </p>++ <div className='grid grid-cols-2 gap-6'>++ {/* Setup Instructions */}+ <div className="mb-12">+ <h2 className="text-2xl font-semibold mb-6 text-stone-800 dark:text-stone-200">+ Setup OpenLIT SDK+ </h2>++ <Tabs className="w-full" defaultValue="python">+ <TabsList>+ <TabsTrigger value="python">Python</TabsTrigger>+ <TabsTrigger value="typescript">TypeScript</TabsTrigger>+ </TabsList>++ {/* Python Tab */}+ <TabsContent value="python" className="space-y-6">+ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">1. Install OpenLIT SDK</h3>+ <p className="mb-2 text-sm text-stone-600 dark:text-stone-400">+ Install the{" "}+ <a+ className="text-primary italic px-1"+ href="https://github.com/openlit/openlit/tree/main/sdk/python"+ target="_blank"+ rel="noopener noreferrer"+ >+ OpenLIT Python SDK+ </a>{" "}+ using pip:+ </p>+ <CodeBlock+ className="text-xs"+ code={`pip install openlit`}+ language="bash"+ />+ </div>++ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">2. Initialize OpenLIT in Your Application</h3>+ <p className="mb-2 text-sm text-stone-600 dark:text-stone-400">+ Add the following two lines to your application code:+ </p>+ <CodeBlock+ className="text-xs"+ code={`import openlit++openlit.init(otlp_endpoint="http://127.0.0.1:4318")`}+ language="python"+ />+ </div>++ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">3. Example Usage with OpenAI</h3>+ <CodeBlock+ className="text-xs"+ code={`from openai import OpenAI+import openlit++openlit.init(otlp_endpoint="http://127.0.0.1:4318")++client = OpenAI(api_key="YOUR_OPENAI_KEY")++chat_completion = client.chat.completions.create(+ messages=[+ {+ "role": "user",+ "content": "What is LLM Observability?",+ }+ ],+ model="gpt-3.5-turbo",+)`}+ language="python"+ />+ </div>++ <div className="bg-stone-50 dark:bg-stone-900 p-4 rounded-lg border border-stone-200 dark:border-stone-700">+ <p className="text-sm text-stone-600 dark:text-stone-400">+ <strong className="text-stone-800 dark:text-stone-200">π‘ Tip:</strong> You can also set the endpoint using the{" "}+ <code className="text-primary px-1">OTEL_EXPORTER_OTLP_ENDPOINT</code> environment variable.+ </p>+ </div>+ </TabsContent>++ {/* TypeScript Tab */}+ <TabsContent value="typescript" className="space-y-6">+ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">1. Install OpenLIT SDK</h3>+ <p className="mb-2 text-sm text-stone-600 dark:text-stone-400">+ Install the{" "}+ <a+ className="text-primary italic px-1"+ href="https://github.com/openlit/openlit/tree/main/sdk/typescript"+ target="_blank"+ rel="noopener noreferrer"+ >+ OpenLIT TypeScript SDK+ </a>{" "}+ using npm:+ </p>+ <CodeBlock+ className="text-xs"+ code={`npm install openlit`}+ language="bash"+ />+ </div>++ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">2. Initialize OpenLIT in Your Application</h3>+ <p className="mb-2 text-sm text-stone-600 dark:text-stone-400">+ Add the following lines to your application code:+ </p>+ <CodeBlock+ className="text-xs"+ code={`import openlit from 'openlit';++openlit.init({+ otlpEndpoint: "http://127.0.0.1:4318"+});`}+ language="typescript"+ />+ </div>++ <div>+ <h3 className="text-lg font-semibold mb-3 text-primary">3. Example Usage with OpenAI</h3>+ <CodeBlock+ className="text-xs"+ code={`import OpenAI from 'openai';+import openlit from 'openlit';++openlit.init({ otlpEndpoint: "http://127.0.0.1:4318" });++const client = new OpenAI({+ apiKey: process.env.OPENAI_API_KEY+});++const chatCompletion = await client.chat.completions.create({+ messages: [{ role: 'user', content: 'What is LLM Observability?' }],+ model: 'gpt-3.5-turbo',+});`}+ language="typescript"+ />+ </div>++ <div className="bg-stone-50 dark:bg-stone-900 p-4 rounded-lg border border-stone-200 dark:border-stone-700">+ <p className="text-sm text-stone-600 dark:text-stone-400">+ <strong className="text-stone-800 dark:text-stone-200">π‘ Tip:</strong> You can also set the endpoint using the{" "}+ <code className="text-primary px-1">OTEL_EXPORTER_OTLP_ENDPOINT</code> environment variable.+ </p>+ </div>+ </TabsContent>+ </Tabs>+ </div>++ {/* Features Grid */}+ <div>+ <h2 className="text-2xl font-semibold mb-6 text-stone-800 dark:text-stone-200">+ Key Features+ </h2>+ <div className="grid grid-cols-1 gap-6">+ {[{+ icon: "π",+ title: "Zero-Code Instrumentation",+ description: "Automatically trace LLMs, agents, frameworks, vector databases, and GPUs without modifying your existing code.",+ },+ {+ icon: "β‘",+ title: "Exception Tracking",+ description: "Track and debug application errors with detailed stack traces to rapidly identify and resolve issues.",+ },+ {+ icon: "π",+ title: "OpenTelemetry Compatible",+ description: "Full OpenTelemetry compatibility allows you to view traces from any OpenTelemetry-instrumented tool in your stack.",+ },+ {+ icon: "π",+ title: "Performance Insights",+ description: "Visualize application flow and identify performance bottlenecks to optimize your GenAI and LLM applications.",+ }+ ].map((item, index) => (+ <Card key={item.title} className='border'>+ <CardTitle className='p-6 gap-2 flex items-center text-stone-700 dark:text-stone-300'>+ <span className="text-2xl">{item.icon}</span>+ <span>{item.title}</span>+ </CardTitle>+ <CardContent>+ <p className="text-stone-500 dark:text-stone-400">+ {item.description}+ </p>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ </div>++ {/* Footer Links */}+ <div className="mt-8 text-center">+ <p className="text-sm text-stone-500 dark:text-stone-500">+ For more information, visit the{" "}+ <a+ href="https://docs.openlit.io"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary hover:underline"+ >+ OpenLIT Documentation+ </a>+ </p>+ </div>+ </div>+ </div>+ );+})diff --git a/src/client/src/components/(playground)/openground/header.tsx b/src/client/src/components/(playground)/openground/header.tsxindex 45b96119..4f81d9e6 100644--- a/src/client/src/components/(playground)/openground/header.tsx+++ b/src/client/src/components/(playground)/openground/header.tsx@@ -4,10 +4,10 @@ import { useRootStore } from "@/store";import Link from "next/link";export default function OpengroundHeader({- title,+ className ="flex w-full items-center justify-end",validateResponse = true,}: {- title: string;+ className?: string;validateResponse: boolean;}) {const evaluatedResponse = useRootStore(getEvaluatedResponse);@@ -17,7 +17,7 @@ export default function OpengroundHeader({(validateResponse && !!evaluatedResponse.data) || !validateResponse;return (- <div className="flex w-full items-center justify-end">+ <div className={className}>{showButton ? (<Link href={"/openground/new"} onClick={resetOpengroundData}><Button variant="secondary" className="bg-primary hover:bg-primary dark:bg-primary dark:hover:bg-primary text-stone-100 dark:text-stone-100 h-9 py-1">Create new</Button>diff --git a/src/client/src/components/(playground)/prompt-hub/header.tsx b/src/client/src/components/(playground)/prompt-hub/header.tsxindex 222658e3..94a26a56 100644--- a/src/client/src/components/(playground)/prompt-hub/header.tsx+++ b/src/client/src/components/(playground)/prompt-hub/header.tsx@@ -6,13 +6,15 @@ import PromptUsage from "./usage";export default function PromptHubHeader({createNew,+ className = "flex w-full items-center justify-end gap-3",}: {createNew?: boolean;+ className?: string;}) {const pingStatus = useRootStore(getPingStatus);return (- <div className="flex w-full items-center justify-end gap-3">+ <div className={className}>{pingStatus === "success" && <PromptUsage />}{createNew && pingStatus === "success" && (<PromptForm>diff --git a/src/client/src/components/(playground)/prompt-hub/usage.tsx b/src/client/src/components/(playground)/prompt-hub/usage.tsxindex b38194e6..3291b323 100644--- a/src/client/src/components/(playground)/prompt-hub/usage.tsx+++ b/src/client/src/components/(playground)/prompt-hub/usage.tsx@@ -9,7 +9,7 @@ export default function PromptUsage() {<Link href={documentationLinks.promptHub} target="_blank" rel="noopener noreferrer"><Button variant="outline" className="flex gap-2 px-8 h-9 py-1 rounded-md font-normal text-stone-600"><BookText className="w-4 h-4" />- Prompt documentation+ Learn more</Button></Link></div>diff --git a/src/client/src/components/(playground)/vault/header.tsx b/src/client/src/components/(playground)/vault/header.tsxindex 097b663e..efe8f370 100644--- a/src/client/src/components/(playground)/vault/header.tsx+++ b/src/client/src/components/(playground)/vault/header.tsx@@ -5,18 +5,18 @@ import { getPingStatus } from "@/selectors/database-config";import VaultUsage from "./usage";export default function VaultHeader({- createNew,+ className = "flex w-full items-center justify-end gap-4",successCallback,}: {- createNew?: boolean;+ className?: string;successCallback?: () => void;}) {const pingStatus = useRootStore(getPingStatus);return (- <div className="flex w-full items-center justify-end gap-4">+ <div className={className}>{pingStatus === "success" && <VaultUsage />}- {createNew && pingStatus === "success" && (+ {pingStatus === "success" && (<SecretForm successCallback={successCallback}><Buttonvariant="secondary"diff --git a/src/client/src/components/(playground)/vault/usage.tsx b/src/client/src/components/(playground)/vault/usage.tsxindex cc3d4134..cc46ae8a 100644--- a/src/client/src/components/(playground)/vault/usage.tsx+++ b/src/client/src/components/(playground)/vault/usage.tsx@@ -9,7 +9,7 @@ export default function VaultUsage() {<Link href={documentationLinks.vault} target="_blank" rel="noopener noreferrer"><Button variant="outline" className="flex gap-2 px-8 h-9 py-1 rounded-md font-normal text-stone-600"><BookText className="w-4 h-4" />- Vault documentation+ Learn more</Button></Link></div>diff --git a/src/client/src/helpers/server/cron.ts b/src/client/src/helpers/server/cron.tsindex d8303d45..cc644d50 100644--- a/src/client/src/helpers/server/cron.ts+++ b/src/client/src/helpers/server/cron.ts@@ -1,5 +1,6 @@import getMessage from "@/constants/messages";import { Job } from "@/types/cron";+import { consoleLog } from "@/utils/log";import { execSync } from "child_process";import { isValidCron } from "cron-validator";import { existsSync, mkdirSync } from "fs";@@ -99,7 +100,8 @@ export default class Cron {const endIdx = lines.indexOf(this.END_MARKER);if (startIdx === -1 || endIdx === -1 || startIdx > endIdx) {- throw new Error("Cron job section not found in crontab");+ consoleLog("Cron job section not found in crontab");+ return;}const managedSection = lines.slice(startIdx + 1, endIdx);diff --git a/src/client/src/lib/platform/evaluation/index.ts b/src/client/src/lib/platform/evaluation/index.tsindex 17443ede..f97dabf8 100644--- a/src/client/src/lib/platform/evaluation/index.ts+++ b/src/client/src/lib/platform/evaluation/index.ts@@ -154,10 +154,10 @@ async function getEvaluationConfigForTrace(try {const data: { success: boolean; result?: Evaluation[]; error?: string } =await new Promise((resolve) => {- const pythonProcess = spawn("/bin/sh", [+ const pythonProcess = spawn("/bin/bash", ["-c",`- source venv/bin/activate && \+ . venv/bin/activate && \python3 scripts/evaluation/evaluate.py '${JSON.stringify({spanId: trace.SpanId,model: `${evaluationConfig.provider}/${evaluationConfig.model}`,diff --git a/src/client/src/lib/platform/request/index.ts b/src/client/src/lib/platform/request/index.tsindex 4587beae..1c93a6dc 100644--- a/src/client/src/lib/platform/request/index.ts+++ b/src/client/src/lib/platform/request/index.ts@@ -268,3 +268,8 @@ export async function getHeirarchyViaSpanId(spanId: string) {record: {},};}++export async function getRequestExist() {+ const query = `SELECT COUNT(*) AS total_requests FROM ${OTEL_TRACES_TABLE_NAME}`;+ return dataCollector({ query });+}\ No newline at end of file