@honeycombio/opentelemetry-react-native

0.2.0 • Public • Published

Honeycomb OpenTelemetry React Native

OSS Lifecycle CircleCI

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.

Getting started

  1. Install this library:
yarn add @honeycombio/opentelemetry-react-native
  1. Get a Honeycomb API key.

  2. 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();
  1. 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.

SDK Configuration Options

See the Honeycomb Web SDK for more most options.

These are the React Native-specific options:

Option Type Required? Description

Default Attributes

All spans will include the following attributes

TODO

Auto-instrumentation

TODO

Manual Instrumentation

Sending a custom span.

let span = trace
  .getTracer('your-tracer-name')
  .startSpan('some-span');
span.end();

/@honeycombio/opentelemetry-react-native/

    Package Sidebar

    Install

    npm i @honeycombio/opentelemetry-react-native

    Weekly Downloads

    52

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    39 kB

    Total Files

    43

    Last publish

    Collaborators

    • eanakashima
    • sentant_alexis
    • honeycombci
    • robbkidd
    • jamiedanielson
    • sentant_brooke
    • christineyen
    • mikegoldsmith
    • jharley
    • veravera
    • sentant_alina
    • cyfy77
    • sentant_james
    • elijms
    • jeremylerner
    • keightyleo
    • roshanell
    • gradysalzmanhoneycomb
    • rena-honeycomb
    • sentant_dune