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';
15
15
import { FastifyInstrumentationV3 } from './v3/instrumentation' ;
16
16
import * as diagnosticsChannel from 'node:diagnostics_channel' ;
17
17
import { DEBUG_BUILD } from '../../../debug-build' ;
18
+ import type { Instrumentation , InstrumentationConfig } from '@opentelemetry/instrumentation' ;
18
19
19
20
interface FastifyHandlerOptions {
20
21
/**
@@ -77,8 +78,8 @@ export const instrumentFastify = generateInstrumentOnce(INTEGRATION_NAME, () =>
77
78
} ) ;
78
79
} ) ;
79
80
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 > ;
82
83
} ) ;
83
84
84
85
const _fastifyIntegration = ( ( ) => {
You can’t perform that action at this time.
0 commit comments