Separated and isolated the responsibilities of monitoring tools. Reorganized the code by introducing a core package that contains common code related to monitoring and moved all the service operations like error capturing and identification of users into their respective packages. This ensures each tool is independent and easy to maintain.
8 lines
219 B
TypeScript
8 lines
219 B
TypeScript
import { InstrumentationProvider } from './monitoring-providers.enum';
|
|
|
|
export function getMonitoringProvider() {
|
|
return process.env.NEXT_PUBLIC_MONITORING_PROVIDER as
|
|
| InstrumentationProvider
|
|
| undefined;
|
|
}
|