Skip to content

feat(remix)!: Remove autoInstrumentRemix option #15074

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 6 commits into from
Jan 21, 2025

Conversation

lforst
Copy link
Member

@lforst lforst commented Jan 20, 2025

Resolves #14312

Verified

This commit was signed with the committer’s verified signature.
lforst Luca Forstner
Copy link

codecov bot commented Jan 20, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
247 1 246 12
View the top 1 failed tests by shortest run time
server-transactions.test.ts Sends parameterized transaction name to Sentry
Stack Traces | 0.143s run time
server-transactions.test.ts:8:1 Sends parameterized transaction name to Sentry

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
lforst Luca Forstner
.

Verified

This commit was signed with the committer’s verified signature.
lforst Luca Forstner
@lforst
Copy link
Member Author

lforst commented Jan 21, 2025

@onurtemizkan I am a bit lost as to why the integration tests are failing. Would you mind taking a look?

@onurtemizkan
Copy link
Collaborator

@lforst - Sure, checking now 👍

@onurtemizkan
Copy link
Collaborator

@lforst - looks like error handling was also removed with the tracing. I added it back. de3fe46

@lforst
Copy link
Member Author

lforst commented Jan 21, 2025

Oh damn, totally missed that. Thank you so much!

@lforst lforst marked this pull request as ready for review January 21, 2025 16:40
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.

Looks good to me!

@lforst lforst merged commit c307597 into develop Jan 21, 2025
150 checks passed
@lforst lforst deleted the lforst-rm-autoinstrremix branch January 21, 2025 16:56
AbhiPrasad pushed a commit that referenced this pull request Feb 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
This PR adds support for Shopify Hydrogen applications running on
MiniOxygen runtime.

### What's updated

**Issue with `node:async_hooks`**
(#5610 (comment))
- `@sentry/cloudflare` has a new export path called `./request` to
import only the request wrapper without involving `async.ts` which
imports `node:async_hooks`. That fixes the build problems on the
MiniOxygen environment.

**Issue with imported empty modules on MiniOxygen** (Related:
vitejs/vite#10612)
- `@sentry/remix` has a new export path called `./cloudflare` to fix
empty methods in the imported modules. The problem there seemed to be
the re-exports that are somehow not resolved. So with this, I also
updated the file structure of Remix SDK to separate the
client/server/cloudflare code with their own per-folder `index` files.

**Issue having `loader` and `action` spans** 
- This is currently [not
supported](https://github.com/justindsmith/opentelemetry-instrumentations-js/tree/main/packages/instrumentation-remix#cloudflare-worker-warning)
on `cloudflare` environments on the auto-instrumented flow. To support
them, I re-introduced the span creation flow we were using before
migration. That's a step back from
#15074, but by
default this logic is disabled. It's enabled by default when
`instrumentBuild` is imported from `@sentry/remix/cloudflare`.

**The root server spans are not parameterised**

That's because we don't have the Remix routes information on
`@sentry/cloudflare`'s request wrapper. I have tried updating the root
span's name inside `@sentry/remix/cloudflare`'s logic and it works. But
I have left it out for now, not to make this PR even more difficult to
review.
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.

[v9] Unify instrumentation for Remix (removing autoInstrumentRemix)
2 participants