refactor: register fastify-sentry directly (#50622)

This commit is contained in:
Oliver Eyton-Williams
2023-06-06 13:45:12 +02:00
committed by GitHub
parent ea3eca975e
commit 30419c2e20
2 changed files with 1 additions and 15 deletions

View File

@@ -1,14 +0,0 @@
import Sentry, { SentryPluginOptions } from '@immobiliarelabs/fastify-sentry';
import { FastifyPluginCallback } from 'fastify';
import fp from 'fastify-plugin';
const fastifySentry: FastifyPluginCallback<SentryPluginOptions> = async (
fastify,
options
) => {
await fastify.register(Sentry, options);
fastify.log.info('Sentry plugin registered');
};
export default fp(fastifySentry);