-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add sentry logging #637
base: chore/add-sentry
Are you sure you want to change the base?
feat(cli): add sentry logging #637
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
CLI:
Fixes #529
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement, Bug fix, Documentation, Other
Description
Integrated Sentry logging and error monitoring across CLI, platform, and API.
Added new commands and improved existing ones in CLI for secrets and variables management.
Enhanced error handling and logging with Sentry integration in CLI and platform.
Updated environment schemas and configurations to support Sentry.
Added example pages, API routes, and utilities for testing Sentry integration.
Updated documentation and example environment files with Sentry configurations.
Refactored and improved application setup, logging, and instrumentation for better error tracking.
Updated dependencies and build configurations to include Sentry-related packages.
Added Sentry release management to CI workflow.
Changes walkthrough 📝
12 files
page.tsx
Add Sentry example page for testing integration.
apps/platform/src/app/sentry-example-page/page.tsx
documentation.
startSpan
for error monitoring.main.ts
Refactor Sentry initialization and app setup.
apps/api/src/main.ts
variables.
DOMAIN
andisHttp
in application setup.get.secret.ts
Update `get` command for secrets with environment support.
apps/cli/src/commands/secret/get.secret.ts
get
command to include environment slug as an argument.list.secret.ts
Enhance `list` command for secrets with decryption.
apps/cli/src/commands/secret/list.secret.ts
list
command for secrets.get.variable.ts
Add `get` command for variables with environment support.
apps/cli/src/commands/variable/get.variable.ts
get
command for variables under a project andenvironment.
base.command.ts
Add Sentry integration to base command logic.
apps/cli/src/commands/base.command.ts
commands.
sentry.ts
Introduce Sentry utility for CLI error reporting.
apps/cli/src/util/sentry.ts
global-error.tsx
Add global error handling with Sentry integration.
apps/platform/src/app/global-error.tsx
platform.
variable.command.ts
Register `get` command for variables in CLI.
apps/cli/src/commands/variable.command.ts
get
command for variables in the CLI.logger.ts
Enhance logger with Sentry error reporting.
apps/cli/src/util/logger.ts
report
method to log errors to Sentry.instrumentation.ts
Add Sentry instrumentation for platform.
apps/platform/src/instrumentation.ts
route.ts
Add Sentry example API route for testing.
apps/platform/src/app/api/sentry-example-api/route.ts
9 files
env.schema.ts
Update environment schema with Sentry and defaults.
apps/api/src/common/env/env.schema.ts
API_PORT
andDOMAIN
.env.ts
Add Sentry environment variables for platform.
apps/platform/src/env.ts
sentry.client.config.ts
Add Sentry client configuration for platform.
apps/platform/sentry.client.config.ts
sentry.edge.config.ts
Add Sentry edge configuration for platform.
apps/platform/sentry.edge.config.ts
sentry.server.config.ts
Add Sentry server configuration for platform.
apps/platform/sentry.server.config.ts
index.ts
Add dotenv configuration to CLI entry point.
apps/cli/src/index.ts
next.config.js
Integrate Sentry into Next.js configuration.
apps/platform/next.config.js
esbuild.config.js
Add esbuild configuration for CLI with Sentry.
apps/cli/esbuild.config.js
integration.
release.yml
Add Sentry release management to CI workflow.
.github/workflows/release.yml
1 files
create.environment.ts
Enhance error reporting for environment creation.
apps/cli/src/commands/environment/create.environment.ts
failures.
2 files
.env.example
Update example environment variables with Sentry settings.
.env.example
configurations.
.env.example
Add example environment file for CLI.
apps/cli/.env.example
3 files
package.json
Update CLI package.json with Sentry dependencies.
apps/cli/package.json
package.json
Update platform package.json with Sentry dependency.
apps/platform/package.json
package-lock.json
Added Sentry dependencies and updated package metadata.
apps/cli/package-lock.json
@sentry/esbuild-plugin
,@sentry/node
, and@sentry/profiling-node
.Sentry integration and other functionalities.
dev
flags from some existing dependencies, indicating they arenow required in production.
engines, and funding information.
2 files
package.json
Update API package.json with namespace.
apps/api/package.json
package.json
Update web package.json with namespace.
apps/web/package.json
55 files