{"repo":"fastify/otel","free":true,"listed":false,"github":"https://github.com/fastify/otel","clone":"git clone https://github.com/fastify/otel.git","description":"OpenTelemetry instrumentation library","language":"JavaScript","stars":61,"topics":["fastify-library","opentelemetry","opentelemetry-javascript","otel"],"license":"MIT","category":"analytics","readme_excerpt":"@fastify/otel OpenTelemetry auto-instrumentation library. Install Usage @fastify/otel works as a metric creator as well as application performance monitor for your Fastify application. It must be configured before defining routes and other plugins in order to cover the most of your Fastify server. - It automatically wraps the main request handler - Instruments all route hooks (defined at instance and route definition level) by default; use instrumentHooks globally or per-route to control auto-instrumented hook spans - onRequest - preParsing - preValidation - preHandler - preSerialization - onSend - onResponse - onError - Instruments automatically custom 404 Not Found handler Example: If the main request handler is not of the form (request, reply) (for example, @fastify/websocket handlers take the form (socket, request) ), the plugin attempts to find the Fastify request object in any of the handler's arguments. If no request object can be found, instrumentation is skipped and a debug level message is logged. Registration using OpenTelemetry Node SDK The plugin can be automatically registered using Node SDK, with registerOnInitialization option set to true . Notes : - This instrumentation requires @opentelemetry/instrumentation-http to be able to propagate the traces all the way back to upstream - The HTTP instrumentation might cover all your routes although @fastify/otel just covers a subset of your application For more information about OpenTelemetry, please refer to the Open","default_branch":null,"files":null,"tree":[],"storefront":"/r/fastify","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fastify/otel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}