UNPKG

@sumologic/opentelemetry-rum

Version:

Adds OpenTelemetry tracing auto-instrumentation in the browser. Collects spans on network events and sends them to Sumo Logic.

9 lines (8 loc) 605 B
import { Context } from '@opentelemetry/api'; export declare const wrapWithToString: <Nodule extends object, FieldName extends keyof Nodule>(nodule: Nodule, name: FieldName, wrapper: (original: Nodule[FieldName]) => Nodule[FieldName]) => Nodule[FieldName]; export declare const copyToStringFrom: <T>(target: T, source: object) => void; export declare const getObjectContext: (object: object) => Context | undefined; /** * All method called on the given object will have the given context. */ export declare const setObjectContext: (object: object, context: Context) => WeakMap<object, Context>;