Update dependencies and refactor SentryProvider component
This update includes version bumps for several dependencies across multiple packages and applications including "@sentry/nextjs", "lucide-react", "@types/node", "pnpm", and others. It also includes a change to the SentryProvider component where the SentryMonitoringService is now instantiated outside the MonitoringProvider function instead of using useRef inside the function.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
"@opentelemetry/resources": "1.24.1",
|
||||
"@opentelemetry/sdk-node": "0.51.1",
|
||||
"@opentelemetry/semantic-conventions": "^1.24.1",
|
||||
"@sentry/nextjs": "^8.5.0",
|
||||
"@sentry/nextjs": "^8.7.0",
|
||||
"@sentry/opentelemetry-node": "^7.114.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,18 +1,16 @@
|
||||
import { useRef } from 'react';
|
||||
|
||||
import { MonitoringContext } from '@kit/monitoring-core';
|
||||
|
||||
import { SentryMonitoringService } from '../services/sentry-monitoring.service';
|
||||
|
||||
const sentry = new SentryMonitoringService();
|
||||
|
||||
export function SentryProvider({ children }: React.PropsWithChildren) {
|
||||
return <MonitoringProvider>{children}</MonitoringProvider>;
|
||||
}
|
||||
|
||||
function MonitoringProvider(props: React.PropsWithChildren) {
|
||||
const service = useRef(new SentryMonitoringService());
|
||||
|
||||
return (
|
||||
<MonitoringContext.Provider value={service.current}>
|
||||
<MonitoringContext.Provider value={sentry}>
|
||||
{props.children}
|
||||
</MonitoringContext.Provider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user