Skip to content

feat(remix): Enable Remix SDK #5327

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

Merged
merged 7 commits into from
Jul 1, 2022
Merged

feat(remix): Enable Remix SDK #5327

merged 7 commits into from
Jul 1, 2022

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 28, 2022

Ref #4894

Enables the publishing of the Sentry Remix SDK. We also rename upload-sourcemaps -> sentry-upload-sourcemaps, and add a small README for instructions.

Reverts #5274

@AbhiPrasad AbhiPrasad added this to the Sentry Remix SDK milestone Jun 28, 2022
@AbhiPrasad AbhiPrasad self-assigned this Jun 28, 2022
@AbhiPrasad AbhiPrasad marked this pull request as ready for review June 29, 2022 16:23
Copy link
Collaborator

@onurtemizkan onurtemizkan left a comment

Choose a reason for hiding this comment

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

Just added a note about how to generate sourcemaps with Remix.

Co-authored-by: Michaël De Boey <[email protected]>
Co-authored-by: Onur Temizkan <[email protected]>
@AbhiPrasad
Copy link
Member Author

@MichaelDeBoey thank you for the review!

@AbhiPrasad AbhiPrasad requested a review from onurtemizkan June 30, 2022 17:48
tracesSampleRate: 1,
integrations: [
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.remixRouterInstrumentation(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Why don't we set these properties for the user inside of remixRouterInstrumentation instead of asking them to do this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because dependency injection means that we don’t have to deal with importing the functions ourselves, which means we minimize versioning conflicts.

also init is usually only done once, so it’s not like folks have to come back and touch this code again, so just letting them pass in the imports is fine.

we’ve done this for the rest of our routing instrumentation and never gotten negative feedback.

Copy link
Contributor

@vladanpaunovic vladanpaunovic left a comment

Choose a reason for hiding this comment

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

I added @sentry/remix to the issue template for bugs (i feel we'll need it 😄 )

@vladanpaunovic
Copy link
Contributor

This looks good to me for alpha release.

In the upcoming weeks, we should take some time to improve the developer experience here a bit. I believe we could make it easier for users to bootstrap.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) June 30, 2022 19:07
@AbhiPrasad
Copy link
Member Author

Well it seems like the ember tests are failing because https://registry.yarnpkg.com/@types/eslint/-/eslint-8.4.4.tgz is not found while https://www.npmjs.com/package/@types/eslint/v/8.4.4 was just published.

I guess we wait it out until it works? Or we switch registries for the yarn tests.

@lforst
Copy link
Member

lforst commented Jun 30, 2022

Well it seems like the ember tests are failing because registry.yarnpkg.com/@types/eslint/-/eslint-8.4.4.tgz is not found while npmjs.com/package/@types/eslint/v/8.4.4 was just published.

I guess we wait it out until it works? Or we switch registries for the yarn tests.

I'd just wait right now but imo we should install packages in CI with npm ci or yarn install --frozen-lockfile. Reproducable builds are everything.

lol also just stumbled on this discussion by BYK yarnpkg/yarn#4147 (comment)

@AbhiPrasad
Copy link
Member Author

Ah here's the issue: DefinitelyTyped/DefinitelyTyped#61032


## Sourcemaps and Releases

The Remix SDK provides a script that automatically creates a release and uploads sourcemaps. To generate sourcemaps with Remix, you need to call `remix build` with `--sourcemap` option.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The Remix SDK provides a script that automatically creates a release and uploads sourcemaps. To generate sourcemaps with Remix, you need to call `remix build` with `--sourcemap` option.
The Remix SDK provides a script that automatically creates a release and uploads sourcemaps. To generate sourcemaps with Remix, you need to call `remix build` with the `--sourcemap` option.

@AbhiPrasad AbhiPrasad merged commit 922e9b1 into master Jul 1, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-remix-enable branch July 1, 2022 08:54
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.

6 participants