Honeycomb wrapper for OpenTelemetry in React Native apps.
STATUS: this library is experimental. Data shapes are unstable and subject to change. We are actively seeking feedback to ensure usability.
- Install this library:
yarn add @honeycombio/opentelemetry-react-native
-
Initialize tracing at the start of your application:
import { HoneycombReactNativeSDK } from '@honeycombio/opentelemetry-react-native';
const sdk = new HoneycombReactNativeSDK({
apiKey: 'api-key-goes-here',
serviceName: 'your-great-browser-application',
instrumentations: [], // add automatic instrumentation
});
sdk.start();
- Build and run your application, and then look for data in Honeycomb. On the Home screen, choose your application by looking for the service name in the Dataset dropdown at the top. Data should populate.
Refer to our Honeycomb documentation for more information on instrumentation and troubleshooting.
See the Honeycomb Web SDK for more most options.
These are the React Native-specific options:
Option | Type | Required? | Description |
---|
All spans will include the following attributes
TODO
TODO
let span = trace
.getTracer('your-tracer-name')
.startSpan('some-span');
span.end();