
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
react-native-open-telemetry
Advanced tools
Best in class observability brought to React Native.
| Platform | Support |
|---|---|
| web | ☑️ Stable |
| android | ☑️ Stable JS with experimental Native 🏗️ |
| ios | ☑️ Stable JS with planned Native 👀 |
npm install react-native-open-telemetry
See OpenTelemetry's JS documentation on Traces and Metrics for more information on available APIs.
import { openTelemetrySDK } from 'react-native-open-telemetry';
// Start the SDK
const sdk = openTelemetrySDK({
debug: true,
url: "https://my-collector.com:4317",
name: "my-app",
version: "1.0.0-alpha",
environment: "development",
});
// Use available APIs
const meter = sdk.metrics.getMeter("my-js-meter", "1.0");
const promoCounter = meter.createCounter("my-promo-counter", {
description: "A counter metric for my promo section"
});
function App() {
function onPress() {
promoCounter.add(1);
}
return <Button title="Press me" onPress={onPress} />
}
[!IMPORTANT] This section is considered highly experimental. There's currently no support for bidirectional JS/Native communication and the
nativefeature flag only marks an API that will become available.
Android
See OpenTelemetry's Android documentation on Traces and Metrics for more information on available APIs.
import com.opentelemetry.OpenTelemetry
class MainApplication : Application(), ReactApplication {
override fun onCreate() {
super.onCreate()
// Start the SDK
OpenTelemetry.init(this) {
debug = true
url = "https://my-collector.com:4317"
name = "my-app"
version = "1.0.0"
environment = "production"
}
// ..
// Use available APIs
val sdk = OpenTelemetry.get()
val meter = sdk.getMeter("native-scope-name")
val counter = meter.counterBuilder("native-counter").build()
counter.add(14)
}
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
Observability SDK for React Native
We found that react-native-open-telemetry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.