Merge pull request #43 from MR-medreport/MED-105-1108
feat(MED-105): small fixes
This commit is contained in:
@@ -24,7 +24,7 @@ export function ButtonTooltip({
|
|||||||
<Info className="size-4 cursor-pointer" />
|
<Info className="size-4 cursor-pointer" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>{content}</TooltipContent>
|
<TooltipContent className='sm:max-w-[30vw] sm:leading-4'>{content}</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { type Instrumentation } from 'next';
|
|||||||
|
|
||||||
const isEnabledInDev = process.env.ENABLE_LOCAL_JOBS === 'true';
|
const isEnabledInDev = process.env.ENABLE_LOCAL_JOBS === 'true';
|
||||||
|
|
||||||
|
const isEnabledScheduler = false as boolean;
|
||||||
|
|
||||||
export async function register() {
|
export async function register() {
|
||||||
const { registerMonitoringInstrumentation } = await import(
|
const { registerMonitoringInstrumentation } = await import(
|
||||||
'@kit/monitoring/instrumentation'
|
'@kit/monitoring/instrumentation'
|
||||||
@@ -12,7 +14,9 @@ export async function register() {
|
|||||||
await registerMonitoringInstrumentation();
|
await registerMonitoringInstrumentation();
|
||||||
|
|
||||||
// Register lightweight in-process job scheduler
|
// Register lightweight in-process job scheduler
|
||||||
await registerJobScheduler();
|
if (isEnabledScheduler) {
|
||||||
|
await registerJobScheduler();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,12 +26,12 @@ export async function register() {
|
|||||||
* @param err
|
* @param err
|
||||||
*/
|
*/
|
||||||
export const onRequestError: Instrumentation.onRequestError = async (err) => {
|
export const onRequestError: Instrumentation.onRequestError = async (err) => {
|
||||||
const { getServerMonitoringService } = await import('@kit/monitoring/server');
|
// const { getServerMonitoringService } = await import('@kit/monitoring/server');
|
||||||
|
|
||||||
const service = await getServerMonitoringService();
|
// const service = await getServerMonitoringService();
|
||||||
|
|
||||||
await service.ready();
|
// await service.ready();
|
||||||
await service.captureException(err as Error);
|
// await service.captureException(err as Error);
|
||||||
};
|
};
|
||||||
|
|
||||||
async function registerJobScheduler() {
|
async function registerJobScheduler() {
|
||||||
|
|||||||
Reference in New Issue
Block a user