Skip to content

Automatic error handler setup for Fastify v5 #15936

Open
@andreiborza

Description

@andreiborza

Description

Fastify v5 introduced diagnostics channels which we could use for automatic setup of the error and request handlers instead of users having to run setupFastifyErrorHandler manually.

While we cannot yet get rid of the handler for <v5, we could simplify the setup for users on v5.

See tracing:fastify.request.handler:start and tracing:fastify.request.handler:error.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions