The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(assistant): enable Braintrust tracing in production (#44644)
Matt Rossman4f90833ed9f6
diff --git a/apps/studio/lib/ai/braintrust-logger.ts b/apps/studio/lib/ai/braintrust-logger.tsindex a98e157369f..c84c1115993 100644--- a/apps/studio/lib/ai/braintrust-logger.ts+++ b/apps/studio/lib/ai/braintrust-logger.ts@@ -3,11 +3,8 @@ import { initLogger } from 'braintrust'const BRAINTRUST_API_KEY = process.env.BRAINTRUST_API_KEYconst BRAINTRUST_PROJECT_ID = process.env.BRAINTRUST_PROJECT_ID-const IS_PRODUCTION = process.env.NEXT_PUBLIC_ENVIRONMENT === 'prod'--// NOTE(mattrossman): Temporary killswitch to disable tracing in productionexport const IS_TRACING_ENABLED =- BRAINTRUST_API_KEY !== undefined && BRAINTRUST_PROJECT_ID !== undefined && !IS_PRODUCTION+ BRAINTRUST_API_KEY !== undefined && BRAINTRUST_PROJECT_ID !== undefinedif (IS_TRACING_ENABLED) {initLogger({