UNPKG

@embrace-io/web-sdk

Version:
25 lines (24 loc) 1.13 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); //#region src/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.ts /** * @deprecated Will be removed in a future version. No-op: soft navigations * are captured out of the box, so NavigationInstrumentation no longer needs * to be constructed manually. For templated route names, use * `withEmbraceRouting`, `withEmbraceRoutingLegacy`, or * `listenToRouterChanges` instead. Returns an inert instrumentation so * existing `instrumentations: [createReactRouterNavigationInstrumentation()]` * setups keep working. */ const createReactRouterNavigationInstrumentation = (_config = {}) => ({ instrumentationName: "NavigationInstrumentation", instrumentationVersion: "1.0.0", disable: () => {}, enable: () => {}, setTracerProvider: () => {}, setMeterProvider: () => {}, setConfig: () => {}, getConfig: () => ({}) }); //#endregion exports.createReactRouterNavigationInstrumentation = createReactRouterNavigationInstrumentation; //# sourceMappingURL=createReactRouterNavigationInstrumentation.cjs.map