Commit 28d183a
authored
feat(core): Export
In #15277,
`TracesSamplerSamplingContext` is added to and exported from
[types-hoist], but is not being exported from [index.ts].
I'm following the [instruction], and I want to inject `(samplingContext:
TracesSamplerSamplingContext) => number | boolean` to a function that is
wrapping `Sentry.init`, but I can't because
`TracesSamplerSamplingContext` is not recognized :(
<!--link-->
[types-hoist]:
https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/types-hoist/samplingcontext.ts#L47
[index.ts]:
https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/index.ts#L403
[instruction]:
https://docs.sentry.io/platforms/javascript/guides/react/tracing/configure-sampling/#sampling-function-tracessamplerTracesSamplerSamplingContext type (#17523)1 parent 31dc645 commit 28d183a
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
414 | 418 | | |
415 | 419 | | |
416 | 420 | | |
| |||
0 commit comments