Skip to content
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(angular): Add Sentry setup in main.ts #768

Open
wants to merge 4 commits into
base: onur/angular-wizard-base
Choose a base branch
from

Conversation

onurtemizkan
Copy link
Collaborator

Supersedes #741 - Part 2

Targeted to the epic branch.

  • Adds Sentry initialization on main.ts with feature selection
  • Also adds Prettier run

Locally tested

#skip-changelog

Copy link

github-actions bot commented Jan 22, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 71f1f1a

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one concern where I think we can use an already existing helper function.

Generally, I'm seeing quite a few duplicated functions from Remix and other SDKs in this flow but for now I'm fine with the duplication. I'll create a tracking issue to dedupe and extract some helper function to tackle later.

import chalk from 'chalk';
import { updateAppEntryMod } from './codemods/main';

export function hasSentryContent(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: can we use the hasSentryContent function from ast-utils.ts instead of this one here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants