UNPKG

@embrace-io/react-native-redux

Version:

Collects telemetry from dispatching actions with Redux

17 lines (16 loc) 573 B
import { Context, Span, SpanOptions, Tracer } from "@opentelemetry/api"; declare const STATIC_NAME = "action"; declare const ATTRIBUTES: { payload: string; type: string; appState: string; outcome: string; }; declare const OUTCOMES: { incomplete: string; success: string; fail: string; }; declare const spanStart: (tracer: Tracer, name: string, options?: SpanOptions, context?: Context) => Span; declare const spanEnd: (span: Span, attributes: SpanOptions["attributes"]) => void; export { spanStart, spanEnd, ATTRIBUTES, STATIC_NAME, OUTCOMES };