Skip to content

Commit

Permalink
feat(instrumentation-fastify): Enable Fastify v5 (#2460)
Browse files Browse the repository at this point in the history
Co-authored-by: David Luna <david.luna@elastic.co>
  • Loading branch information
onurtemizkan and david-luna authored Oct 4, 2024
1 parent 6107185 commit 02a9fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions plugins/node/opentelemetry-instrumentation-fastify/.tav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# releases.
- versions: "4.0.0 || >=4.24.3 <5"
commands: npm run test
- versions: ">=5 <6"
commands: npm run test
peerDependencies: "@fastify/express@4.0.1"
node: '>=20'

# Fastify versions after 4.18.0 require a typescript greater than 4.4.4.
"typescript":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class FastifyInstrumentation extends InstrumentationBase<FastifyInstrumen
return [
new InstrumentationNodeModuleDefinition(
'fastify',
['>=3.0.0 <5'],
['>=3.0.0 <6'],
moduleExports => {
return this._patchConstructor(moduleExports);
}
Expand Down

0 comments on commit 02a9fdb

Please sign in to comment.