mirror of
https://github.com/docmost/docmost.git
synced 2025-11-11 07:12:05 +10:00
Compare commits
1 Commits
tiered-bil
...
sentry
| Author | SHA1 | Date | |
|---|---|---|---|
| d51342f7b0 |
@ -49,6 +49,8 @@
|
|||||||
"@nestjs/websockets": "^11.0.10",
|
"@nestjs/websockets": "^11.0.10",
|
||||||
"@react-email/components": "0.0.28",
|
"@react-email/components": "0.0.28",
|
||||||
"@react-email/render": "1.0.2",
|
"@react-email/render": "1.0.2",
|
||||||
|
"@sentry/nestjs": "^9.2.0",
|
||||||
|
"@sentry/profiling-node": "^9.2.0",
|
||||||
"@socket.io/redis-adapter": "^8.3.0",
|
"@socket.io/redis-adapter": "^8.3.0",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^5.1.1",
|
||||||
"bullmq": "^5.41.3",
|
"bullmq": "^5.41.3",
|
||||||
|
|||||||
@ -14,9 +14,11 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
|
|||||||
import { HealthModule } from './integrations/health/health.module';
|
import { HealthModule } from './integrations/health/health.module';
|
||||||
import { ExportModule } from './integrations/export/export.module';
|
import { ExportModule } from './integrations/export/export.module';
|
||||||
import { ImportModule } from './integrations/import/import.module';
|
import { ImportModule } from './integrations/import/import.module';
|
||||||
|
import { SentryModule } from "@sentry/nestjs/setup";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
SentryModule.forRoot(),
|
||||||
CoreModule,
|
CoreModule,
|
||||||
DatabaseModule,
|
DatabaseModule,
|
||||||
EnvironmentModule,
|
EnvironmentModule,
|
||||||
|
|||||||
@ -8,9 +8,11 @@ import { QueueModule } from '../../integrations/queue/queue.module';
|
|||||||
import { EventEmitterModule } from '@nestjs/event-emitter';
|
import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||||
import { HealthModule } from '../../integrations/health/health.module';
|
import { HealthModule } from '../../integrations/health/health.module';
|
||||||
import { CollaborationController } from './collaboration.controller';
|
import { CollaborationController } from './collaboration.controller';
|
||||||
|
import { SentryModule } from "@sentry/nestjs/setup";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
SentryModule.forRoot(),
|
||||||
DatabaseModule,
|
DatabaseModule,
|
||||||
EnvironmentModule,
|
EnvironmentModule,
|
||||||
CollaborationModule,
|
CollaborationModule,
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import "./common/sentry/instrument";
|
||||||
import { NestFactory } from '@nestjs/core';
|
import { NestFactory } from '@nestjs/core';
|
||||||
import { CollabAppModule } from './collab-app.module';
|
import { CollabAppModule } from './collab-app.module';
|
||||||
import {
|
import {
|
||||||
|
|||||||
16
apps/server/src/common/sentry/instrument.ts
Normal file
16
apps/server/src/common/sentry/instrument.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import * as Sentry from '@sentry/nestjs';
|
||||||
|
import { nodeProfilingIntegration } from '@sentry/profiling-node';
|
||||||
|
import { envPath } from '../helpers';
|
||||||
|
import * as dotenv from 'dotenv';
|
||||||
|
dotenv.config({ path: envPath });
|
||||||
|
|
||||||
|
if (process.env.SENTRY_DSN) {
|
||||||
|
Sentry.init({
|
||||||
|
dsn: process.env.SENTRY_DSN,
|
||||||
|
integrations: [
|
||||||
|
nodeProfilingIntegration(),
|
||||||
|
],
|
||||||
|
tracesSampleRate: 1.0,
|
||||||
|
profilesSampleRate: 1.0,
|
||||||
|
});
|
||||||
|
}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
import "./common/sentry/instrument";
|
||||||
import { NestFactory } from '@nestjs/core';
|
import { NestFactory } from '@nestjs/core';
|
||||||
import { AppModule } from './app.module';
|
import { AppModule } from './app.module';
|
||||||
import {
|
import {
|
||||||
|
|||||||
Reference in New Issue
Block a user