Analytics Adapters
Emit audit/usage events to your observability stack.
Current adapters:
By default, UsefulKey uses the Console analytics adapter when none is provided, so events like key.created
, key.verified
, etc., are logged to the console.
To completely disable analytics, use the Noop adapter:
import { NoopAnalytics, usefulkey } from "betterkey";
const uk = usefulkey({
adapters: {
analytics: new NoopAnalytics(),
},
});