@embrace-io/web-sdk
Version:
1 lines • 1.48 kB
Source Map (JSON)
{"version":3,"file":"createReactRouterNavigationInstrumentation.cjs","names":[],"sources":["../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.ts"],"sourcesContent":["import type {\n Instrumentation,\n InstrumentationConfig,\n} from '@opentelemetry/instrumentation';\nimport type { NavigationInstrumentationArgs } from '../index.ts';\n\n/**\n * @deprecated Will be removed in a future version. No-op: soft navigations\n * are captured out of the box, so NavigationInstrumentation no longer needs\n * to be constructed manually. For templated route names, use\n * `withEmbraceRouting`, `withEmbraceRoutingLegacy`, or\n * `listenToRouterChanges` instead. Returns an inert instrumentation so\n * existing `instrumentations: [createReactRouterNavigationInstrumentation()]`\n * setups keep working.\n */\nexport const createReactRouterNavigationInstrumentation = (\n _config: NavigationInstrumentationArgs = {},\n): Instrumentation => ({\n instrumentationName: 'NavigationInstrumentation',\n instrumentationVersion: '1.0.0',\n disable: () => {},\n enable: () => {},\n setTracerProvider: () => {},\n setMeterProvider: () => {},\n setConfig: () => {},\n getConfig: (): InstrumentationConfig => ({}),\n});\n"],"mappings":";;;;;;;;;;;AAeA,MAAa,8CACX,UAAyC,CAAC,OACrB;CACrB,qBAAqB;CACrB,wBAAwB;CACxB,eAAe,CAAC;CAChB,cAAc,CAAC;CACf,yBAAyB,CAAC;CAC1B,wBAAwB,CAAC;CACzB,iBAAiB,CAAC;CAClB,kBAAyC,CAAC;AAC5C"}