brettermetrics
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

@autometrics/autometrics 📈✨

Documentation

Full documentation for @autometrics/autometrics library can be found here.

Installation: autometrics and peer dependencies

# npm
npm install @autometrics/autometrics @opentelemetry/sdk-metrics
@opentelemetry/exporter-prometheus

# yarn
yarn add @autometrics/autometrics @opentelemetry/sdk-metrics
@opentelemetry/exporter-prometheus

# pnpm
pnpm add @autometrics/autometrics @opentelemetry/sdk-metrics
@opentelemetry/exporter-prometheus

Basic example

import { autometrics } from "@autometrics/autometrics";

async function createUser(payload: User) {
  // ...
}

const user = autometrics(createUser);
    // ^ instrumented function

Readme

Keywords

none

Package Sidebar

Install

npm i brettermetrics

Weekly Downloads

0

Version

0.6.3

License

MIT

Unpacked Size

195 kB

Total Files

29

Last publish

Collaborators

  • bretterplane