Skip to content

feat(remix): Export missing functions #10385

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 2 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ able to use it. From the top level of the repo, there are three commands availab
dependencies (`utils`, `core`, `browser`, etc), and all packages which depend on it (currently `gatsby` and `nextjs`))
- `yarn build:dev:watch`, which runs `yarn build:dev` in watch mode (recommended)

You can also run a production build via `yarn build`, which will build everything except for the tarballs for publishing to NPM.
You can use this if you want to bundle Sentry yourself. The build output can be found in the packages `build/` folder, e.g. `packages/browser/build`.
Bundled files can be found in `packages/browser/build/bundles`.
Note that there are no guarantees about the produced file names etc., so make sure to double check which files are generated after upgrading.
You can also run a production build via `yarn build`, which will build everything except for the tarballs for publishing
to NPM. You can use this if you want to bundle Sentry yourself. The build output can be found in the packages `build/`
folder, e.g. `packages/browser/build`. Bundled files can be found in `packages/browser/build/bundles`. Note that there
are no guarantees about the produced file names etc., so make sure to double check which files are generated after
upgrading.

## Testing SDK Packages Locally

Expand Down
12 changes: 12 additions & 0 deletions packages/remix/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export {
addGlobalEventProcessor,
addEventProcessor,
addBreadcrumb,
addIntegration,
captureCheckIn,
withMonitor,
captureException,
Expand All @@ -30,6 +31,10 @@ export {
getHubFromCarrier,
// eslint-disable-next-line deprecation/deprecation
getCurrentHub,
getClient,
getCurrentScope,
getGlobalScope,
getIsolationScope,
Hub,
// eslint-disable-next-line deprecation/deprecation
makeMain,
Expand Down Expand Up @@ -67,6 +72,13 @@ export {
deepReadDirSync,
Integrations,
Handlers,
setMeasurement,
getActiveSpan,
startSpan,
startSpanManual,
startInactiveSpan,
continueTrace,
isInitialized,
cron,
parameterize,
} from '@sentry/node';
Expand Down