UNPKG

@embrace-io/react-native-tracer-provider

Version:

A React Native for the Embrace SDK that conforms to the OpenTelemetry TracerProvider interface

17 lines (16 loc) 790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TracerProviderModule = void 0; const react_native_1 = require("react-native"); const LINKING_ERROR = `The package '@embrace-io/react-native-tracer-provider' doesn't seem to be linked. Make sure: \n\n` + react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: "" }) + "- You rebuilt the app after installing the package\n" + "- You are not using Expo Go\n"; const TracerProviderModule = react_native_1.NativeModules.ReactNativeTracerProviderModule ? react_native_1.NativeModules.ReactNativeTracerProviderModule : new Proxy({}, { get() { throw new Error(LINKING_ERROR); }, }); exports.TracerProviderModule = TracerProviderModule;