@embrace-io/web-sdk
Version:
24 lines (23 loc) • 1.01 kB
JavaScript
//#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
export { createReactRouterNavigationInstrumentation };
//# sourceMappingURL=createReactRouterNavigationInstrumentation.js.map