@embrace-io/react-native-tracer-provider
Version:
A React Native for the Embrace SDK that conforms to the OpenTelemetry TracerProvider interface
19 lines (18 loc) • 963 B
TypeScript
import { Tracer, TracerProvider } from "@opentelemetry/api";
import { EmbraceNativeTracerProviderConfig } from "./types";
/**
* EmbraceNativeTracerProvider implements a TracerProvider over the native Embrace Android and iOS SDKs.
* Thin wrapped objects representing Tracers and Spans are maintained at the JS level and use Native Modules to
* call down to the SDKs to perform the actual operations on them.
*
* The JS side of this implementation is modelled after [opentelemetry-sdk-trace-base](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base)
*/
declare class EmbraceNativeTracerProvider implements TracerProvider {
private readonly contextManager;
private readonly spanContextSyncBehaviour;
constructor(config?: EmbraceNativeTracerProviderConfig);
getTracer(name: string, version?: string, options?: {
schemaUrl?: string;
}): Tracer;
}
export { EmbraceNativeTracerProvider };