UNPKG

@launchdarkly/session-replay

Version:

Browser observability for your web app. Record session replays to visualize usage patterns.

54 lines (53 loc) 1.38 kB
import { x as n } from "./index-CxTr8FHJ.js"; class a extends n { start() { return this._sdk.start(); } stop() { return this._sdk.stop(); } recordGauge(r) { return this._bufferCall("recordGauge", [r]); } recordCount(r) { return this._bufferCall("recordCount", [r]); } recordIncr(r) { return this._bufferCall("recordIncr", [r]); } recordHistogram(r) { return this._bufferCall("recordHistogram", [r]); } recordUpDownCounter(r) { return this._bufferCall("recordUpDownCounter", [r]); } // TODO: Ask @vkorolik about using this method before initialization. Doesn't // this cause problems if someone tries to work with the returned span? startSpan(r, e, t, s) { return this._bufferCall("startSpan", [r, e, t, s]); } startManualSpan(r, e, t, s) { return this._bufferCall("startManualSpan", [r, e, t, s]); } register(r, e) { return this._bufferCall("register", [r, e]); } recordLog(r, e, t) { return this._bufferCall("recordLog", [r, e, t]); } recordError(r, e, t, s, l) { return this._bufferCall("recordError", [ r, e, t, s, l ]); } } let o; typeof globalThis < "u" ? globalThis.LDObserve ? o = globalThis.LDObserve : (o = new a(), globalThis.LDObserve = o) : o = new a(); export { o as LDObserve }; //# sourceMappingURL=LDObserve-Cc16WfBI.js.map