Skip to main content
Use OpenTelemetry to send traces from your React Native application’s JavaScript layer to ClickHouse Observability.

Set up OpenTelemetry

Follow the official OpenTelemetry React Native demo and its instrumentation source to initialize tracing and instrument network requests. The demo uses the OpenTelemetry JavaScript packages, which are not explicitly supported on React Native. Validate compatibility with your application’s React Native and OpenTelemetry versions.

Configure your destination

Replace the demo’s local exporter configuration with the destination below. Use this exporter in the span processor from the upstream setup. The exporter URL must include /v1/traces.
Open Team Settings → Data → Managed Telemetry in your service and copy the OTLP HTTP endpoint and API key. Keep the complete HTTPS endpoint, including its port, and append /v1/traces:

Verify ingestion

Run your application on a device or simulator and make network requests. In ClickHouse Observability, select a recent time range and find your application’s service name in Traces. For instrumentation details and React Native compatibility workarounds, see the OpenTelemetry React Native demo. For exporter options, see the OpenTelemetry JavaScript exporter documentation.