🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: upload sentry sourcemaps (#3179)
Max Deichmannf59ad5fd600e
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex 2f6af95b16..1755f24348 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -111,6 +111,10 @@ jobs:- name: Buildrun: pnpm run build+ env:+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}+ SENTRY_ORG: ${{ vars.SENTRY_ORG }}+ SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}- name: Start Langfuserun: (pnpm run start&)diff --git a/web/next.config.mjs b/web/next.config.mjsindex 07ad8e07d5..7bc0eb8678 100644--- a/web/next.config.mjs+++ b/web/next.config.mjs@@ -149,39 +149,44 @@ const nextConfig = {},};-const sentryOptions = {- // Additional config options for the Sentry Webpack plugin. Keep in mind that- // the following options are set automatically, and overriding them is not- // recommended:- // release, url, authToken, configFile, stripPrefix,- // urlPrefix, include, ignore+export default withSentryConfig(nextConfig, {+ // For all available options, see:+ // https://github.com/getsentry/sentry-webpack-plugin#optionsorg: process.env.SENTRY_ORG,project: process.env.SENTRY_PROJECT,- silent: true, // Suppresses all logs+ authToken: env.SENTRY_AUTH_TOKEN,++ // Only print logs for uploading source maps in CI+ silent: !process.env.CI,// For all available options, see:- // https://github.com/getsentry/sentry-webpack-plugin#options.+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/- // See the sections below for information on the following options:- // 'Configure Source Maps':- // - disableServerWebpackPlugin- // - disableClientWebpackPlugin- // - hideSourceMaps- hideSourceMaps: true,- // - widenClientFileUpload- // 'Configure Legacy Browser Support':- // - transpileClientSDK- // 'Configure Serverside Auto-instrumentation':- // - autoInstrumentServerFunctions- // - excludeServerRoutes- // 'Configure Tunneling':- // - tunnelRoute-- // An auth token is required for uploading source maps.- authToken: env.SENTRY_AUTH_TOKEN,+ // Upload a larger set of source maps for prettier stack traces (increases build time)+ widenClientFileUpload: true,++ // Automatically annotate React components to show their full name in breadcrumbs and session replay+ reactComponentAnnotation: {+ enabled: true,+ },++ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.+ // This can increase your server load as well as your hosting bill.+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-+ // side errors will fail.tunnelRoute: "/api/monitoring-tunnel",-};-export default withSentryConfig(nextConfig, sentryOptions);+ // Hides source maps from generated client bundles+ hideSourceMaps: true,++ // Automatically tree-shake Sentry logger statements to reduce bundle size+ disableLogger: true,++ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)+ // See the following for more information:+ // https://docs.sentry.io/product/crons/+ // https://vercel.com/docs/cron-jobs+ automaticVercelMonitors: false,+});