1.1.0 • Published 2 years ago

@subbul/fastify-plugin v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Subbul Fastify Plugin

Fastify plugin for Subbul - track your APIs core metrics with a few lines of code.

Overview

Plug in the SDK into your Fastify application and instantly start tracking metrics such as

  • Response times
  • Requests per minute
  • HTTP Status Codes
  • Custom metrics

Once you are tracking your metrics, create alarms against them using the Subbul dashboard.

Quick start

import Fastify from "fastify";
import { Subbul, SubbulAllMetricsMiddleware } from "@subbul/fastify-plugin";

const fastify = Fastify();

fastify.register(Subbul, {
  licenseKey: "<LICENSE_KEY>",
  middleware: SubbulAllMetricsMiddleware()
});

fastify.get('/', (req, res) => {
  res.send('Hello World!')
})

fastify.listen({
  port: 3000,
})

Documentation

Visit the documentation for an extensive overview of this package.

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0-canary.2

2 years ago

1.0.0-canary.3

2 years ago

1.0.0-canary.1

2 years ago

1.0.0-canary.0

2 years ago

1.0.0

2 years ago