-
Notifications
You must be signed in to change notification settings - Fork 85
feat: add React Native support #1035
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
base: react-native-contribution-feature-branch
Are you sure you want to change the base?
feat: add React Native support #1035
Conversation
…tvavo/faro-web-sdk into feat/add-react-native-support # Conflicts: # packages/react-native-tracing/package.json
…nto feat/add-react-native-support
…tvavo/faro-web-sdk into feat/add-react-native-support
…tvavo/faro-web-sdk into feat/add-react-native-support
…nto feat/add-react-native-support
…tvavo/faro-web-sdk into feat/add-react-native-support
…ro-web-sdk into feat/add-react-native-support
refactor: add a better way to measure startup time
…tvavo/faro-web-sdk into feat/add-react-native-support
@@ -145,6 +145,7 @@ export function initializeTransports( | |||
batchExecutor = new BatchExecutor(batchedSend, { | |||
sendTimeout: config.batching.sendTimeout, | |||
itemLimit: config.batching.itemLimit, | |||
ignoreBrowserApi: config.batching.ignoreBrowserApi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this option and provide an option to detect the runtime environment so Faro core can automatically toggle between web APIs and mobile APIs and so on.
@@ -58,4 +58,6 @@ export interface BatchExecutorOptions { | |||
// Buffer "sendLimit" is the number of signals before sending the payload | |||
readonly itemLimit?: number; | |||
readonly paused?: boolean; | |||
|
|||
readonly ignoreBrowserApi?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment in packages/core/src/transports/batchExecutor.ts
this.flush(); | ||
} | ||
}); | ||
if (!options?.ignoreBrowserApi) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment in packages/core/src/transports/batchExecutor.ts
@@ -0,0 +1,52 @@ | |||
# @grafana/instrumentation-fetch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Update readme
Project structure: move react-native package to experimental as well |
@ilia-kurganskii Hey Ilja and team this is absolutely amazing work! I only skimmed over the PR but will do an in-depth review over the next days. See yall and have a great week |
Hi @ilia-kurganskii |
Why
What
Links
Checklist