UNPKG

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

Version:

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

20 lines (19 loc) 1.03 kB
import { Attributes, TimeInput, Link } from "@opentelemetry/api"; /** * Several different primitive types are valid as TimeInput, normalize to a number representing epoch milliseconds * to simplify communication with the native modules * * See https://reactnative.dev/docs/native-modules-android#argument-types and https://reactnative.dev/docs/native-modules-ios#argument-types */ declare const normalizeTime: (time?: TimeInput) => number; /** * Parsing is handled on the native side, just need to make sure it is always defined */ declare const normalizeAttributes: (attributes?: Attributes) => Attributes; /** * Parsing is handled on the native side, just need to make sure it is always defined */ declare const normalizeLinks: (links?: Link[]) => Link[]; declare const isAttributes: (attributesOrTimeInput: Attributes | TimeInput | undefined) => attributesOrTimeInput is Attributes; declare const logWarning: (msg: string) => void; export { normalizeTime, normalizeAttributes, normalizeLinks, isAttributes, logWarning, };