Skip to content

Commit 0612090

Browse files
authored
feat(remix): Export missing functions (#10385)
Looks like we missed re-exporting a couple of recently added functions in the Remix SDK. This patch adds the missing exports: * `addIntegration` * `getClient` * `getCurrentScope`, `getIsolationScope`, `getGlobalScope` * `setMeasurement` * `getActiveSpan` * `startSpan`, `startSpanManual`, `startInactiveSpan` * `continueTrace` * `isInitialized`
1 parent 1f3a796 commit 0612090

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ able to use it. From the top level of the repo, there are three commands availab
3737
dependencies (`utils`, `core`, `browser`, etc), and all packages which depend on it (currently `gatsby` and `nextjs`))
3838
- `yarn build:dev:watch`, which runs `yarn build:dev` in watch mode (recommended)
3939

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

4546
## Testing SDK Packages Locally
4647

packages/remix/src/index.server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export {
1515
addGlobalEventProcessor,
1616
addEventProcessor,
1717
addBreadcrumb,
18+
addIntegration,
1819
captureCheckIn,
1920
withMonitor,
2021
captureException,
@@ -30,6 +31,10 @@ export {
3031
getHubFromCarrier,
3132
// eslint-disable-next-line deprecation/deprecation
3233
getCurrentHub,
34+
getClient,
35+
getCurrentScope,
36+
getGlobalScope,
37+
getIsolationScope,
3338
Hub,
3439
// eslint-disable-next-line deprecation/deprecation
3540
makeMain,
@@ -67,6 +72,13 @@ export {
6772
deepReadDirSync,
6873
Integrations,
6974
Handlers,
75+
setMeasurement,
76+
getActiveSpan,
77+
startSpan,
78+
startSpanManual,
79+
startInactiveSpan,
80+
continueTrace,
81+
isInitialized,
7082
cron,
7183
parameterize,
7284
} from '@sentry/node';

0 commit comments

Comments
 (0)