Skip to content

Commit

Permalink
add examples for each of the current challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmunz committed Sep 12, 2024
1 parent f350d17 commit 8baf60c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion projects/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@ challenges and make it easier for React Native developers to instrument their ap
### Current challenges

- React Native developers do not have working OpenTelemetry instrumentation examples for mobile apps.
- For example the [OpenTelemetry Demo](https://github.com/open-telemetry/opentelemetry-demo) does not currently
include a mobile app
- The existing OTel Javascript packages can be used for React Native, but require workarounds that are subject to change
with minor version updates.
- The OTel Javascript packages leave gaps for telemetry coming from mobile devices, which React Native developers wish to capture.
- For example the Performance API is used in the opentelemetry-sdk-trace-web package as well as
opentelemetry-instrumentation-fetch. This API has broad support across modern browsers, so it makes sense for the web
packages to rely on it, however it is not implemented in React Native environments so developers there either need to
polyfill it or carefully use the web packages in such a way that calls to this API are avoided. A small change to any
web packages that used this API in a new spot could be breaking for instrumented RN apps.
- The OTel Javascript packages leave gaps for telemetry coming from mobile devices, which React Native developers wish
to capture.
- For example the OpenTelemetry Android SDK provides ANR detection as a feature. It would be useful for a React Native
developer to be able to gather this telemetry from the native layer and be able to connect it with a particular operation
or view rendered on the JS layer to uncover performance issues.

### Goals, objectives, and requirements

Expand Down

0 comments on commit 8baf60c

Please sign in to comment.