You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
It is frequently desireable to skip certain endpoints from instrumentation (e. g. metrics and healthchecks). It is not currently possible to do so when using fastify autoinstrumentation.
Describe the solution you'd like to see
Same API that HTTP instrumentation uses would work:
/** Not trace all incoming requests that matched with custom function */
ignoreIncomingRequestHook?: IgnoreIncomingRequestFunction;
Describe alternatives you've considered
It is possible to make this work by adding manual instrumentation to fastify endpoints, but it's not a great DX.