File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/node/src/integrations/tracing/fastify Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { generateInstrumentOnce } from '../../../otel/instrument';
1515import { FastifyInstrumentationV3 } from './v3/instrumentation' ;
1616import * as diagnosticsChannel from 'node:diagnostics_channel' ;
1717import { DEBUG_BUILD } from '../../../debug-build' ;
18+ import type { Instrumentation , InstrumentationConfig } from '@opentelemetry/instrumentation' ;
1819
1920interface FastifyHandlerOptions {
2021 /**
@@ -77,8 +78,8 @@ export const instrumentFastify = generateInstrumentOnce(INTEGRATION_NAME, () =>
7778 } ) ;
7879 } ) ;
7980
80- // Returning this as any not to deal with the internal types of the FastifyOtelInstrumentation
81- return fastifyOtelInstrumentationInstance as any ;
81+ // Returning this as unknown not to deal with the internal types of the FastifyOtelInstrumentation
82+ return fastifyOtelInstrumentationInstance as Instrumentation < InstrumentationConfig > ;
8283} ) ;
8384
8485const _fastifyIntegration = ( ( ) => {
You can’t perform that action at this time.
0 commit comments