We don't want our monitoring systems to raise an alert for each GET 404 Not Found because there are crawlers that try certain URIs.
Here a list of the most common URIs used by crawlers to be added to OpenTelemetry.
const sdk = new NodeSDK({
instrumentations: [
getNodeAutoInstrumentations({
// We recommend disabling fs automatic instrumentation because
// it can be noisy and expensive during startup
'@opentelemetry/instrumentation-fs': {
enabled: false,
},
}),
new HttpInstrumentation({
ignoreIncomingRequestHook: (incomingRequest) =>
ignoredURIs.filter((ignored) => ignored === incomingRequest.url)
.length >= 1,
}),
// Other instrumentations
],
// ...
});