File tree Expand file tree Collapse file tree
packages/server-utils/src/integrations/tracing-channel/fastify Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { IntegrationFn } from '@sentry/core' ;
22import { defineIntegration } from '@sentry/core' ;
33import type { FastifyIntegration , FastifyReply , FastifyRequest } from './types' ;
4-
54import { instrumentFastify as _instrumentFastify } from './instrumentation' ;
65import { defaultShouldHandleError , INTEGRATION_NAME } from './utils' ;
76import { subscribeToFastifyErrorChannel , handleFastifyError as _handleFastifyError } from './errors' ;
@@ -76,9 +75,7 @@ const _fastifyIntegration = (({ shouldHandleError }: Partial<FastifyIntegrationO
7675 * })
7776 * ```
7877 */
79- export const fastifyIntegration = defineIntegration ( ( options : Partial < FastifyIntegrationOptions > = { } ) =>
80- _fastifyIntegration ( options ) ,
81- ) ;
78+ export const fastifyIntegration = defineIntegration ( _fastifyIntegration ) ;
8279
8380/**
8481 * @deprecated This export is deprecated and will not longer be exposed in the next major version.
Original file line number Diff line number Diff line change 11import type { FastifyReply , FastifyRequest } from './types' ;
22
3- export const INTEGRATION_NAME = 'Fastify' ;
3+ export const INTEGRATION_NAME = 'Fastify' as const ;
44
55/**
66 * Default function to determine if an error should be sent to Sentry
You can’t perform that action at this time.
0 commit comments