immobiliare / fastify-metrics

📊 Fastify plugin that integrates metrics collection and dispatch to statsd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing types integration for FastifyContextConfig

mdoria12 opened this issue · comments

Retrieving routeId from request.context leads to type error due to the missing definition of metrics object.

something like:

declare module 'fastify' {
    interface FastifyContextConfig {
        metrics: {
             routeId: string
        }
    }
}