0.6.0 • Published 9 months ago
autometrics v0.6.0
autometrics
This is the basic convenience package that bundles the wrapper library and OpenTelemetry dependencies.
Documentation
Full documentation for autometrics
library can be found
here.
Installation
# npm
npm install autometrics
# yarn
yarn add autometrics
# pnpm
pnpm add autometrics
Usage
- Anywhere in your source code:
import { autometrics } from "autometrics";
async function createUserRaw(payload: User) {
// ...
}
const createUser = autometrics(createUserRaw);
// ^ instrumented function