ObservabilityError telemetry
observability/no-unactionable-errors
Error and fatal logs and exception telemetry should identify the failed operation and preserve useful evidence about the failure.
01 Examples
TypeScript
logger.error("Something failed");Finding
Require operation and failure evidence in error events.
02 Enable it
Setup
Install the package, register its plugin factory, then enable the rule.
Install the package
pnpm add -D @scruple/observabilityRegister the plugin
In scruple.config.ts, register the factory under the observability namespace used by the rule ID.
import { observability } from "@scruple/observability";
plugins: {
"observability": observability(),
},Enable the rule
"observability/no-unactionable-errors": "warn"- Package
@scruple/observability- Default threshold
- 0.85
- Minimum confidence
- 0.7