Skip to content

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

chore: add sentry release tag (#6743)

Max Deichmann860d05a3f4f7
diff --git a/web/Dockerfile b/web/Dockerfile
index fafda70e0c..8824941527 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -69,6 +69,7 @@ ENV SENTRY_PROJECT=$SENTRY_PROJECT
# Accept build id as NEXT_PUBLIC_BUILD_ID
ARG NEXT_PUBLIC_BUILD_ID
ENV NEXT_PUBLIC_BUILD_ID=$NEXT_PUBLIC_BUILD_ID
+ENV SENTRY_RELEASE=$NEXT_PUBLIC_BUILD_ID
# Copy source code of isolated subworkspace
COPY --from=pruner /app/out/full/ .
diff --git a/web/sentry.client.config.ts b/web/sentry.client.config.ts
index a96832db72..9e8bc7c13d 100644
--- a/web/sentry.client.config.ts
+++ b/web/sentry.client.config.ts
@@ -3,6 +3,7 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT,
+ release: process.env.NEXT_PUBLIC_BUILD_ID,
// Replay may only be enabled for the client-side
integrations: [