Skip to content
← All rules
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.

loggingerrorsdiagnostics
TypeScript
logger.error("Something failed");
Finding

Require operation and failure evidence in error events.

Setup

Install the package, register its plugin factory, then enable the rule.

Install the package

pnpm add -D @scruple/observability

Register 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

Released under the MIT License.