Skip to content

Commit 02a9fdb

Browse files
feat(instrumentation-fastify): Enable Fastify v5 (#2460)
Co-authored-by: David Luna <[email protected]>
1 parent 6107185 commit 02a9fdb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/node/opentelemetry-instrumentation-fastify/.tav.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# releases.
44
- versions: "4.0.0 || >=4.24.3 <5"
55
commands: npm run test
6+
- versions: ">=5 <6"
7+
commands: npm run test
8+
peerDependencies: "@fastify/[email protected]"
9+
node: '>=20'
610

711
# Fastify versions after 4.18.0 require a typescript greater than 4.4.4.
812
"typescript":

plugins/node/opentelemetry-instrumentation-fastify/src/instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class FastifyInstrumentation extends InstrumentationBase<FastifyInstrumen
5555
return [
5656
new InstrumentationNodeModuleDefinition(
5757
'fastify',
58-
['>=3.0.0 <5'],
58+
['>=3.0.0 <6'],
5959
moduleExports => {
6060
return this._patchConstructor(moduleExports);
6161
}

0 commit comments

Comments
 (0)