elastic / elastic/apm-agent-nodejs

update fastify instr to avoid new deprecation warnings

Open
#3,634 0 comments 0 reactions 0 assignees View on GitHub
agent-nodejs good first issue
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

This change in fastify@4.23.0 adds a deprecation warning for accessing req.routerMethod and req.routerPath.

```
* 59050e57 - feat: access handler name add properties to req route options (#4470)
```

My guess (haven't tried yet) is that our instrumentation will cause deprecation warnings for users using this fastify and later. We should adjust to using the newer fields if available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.