open-index/open-npm huggingface dataset:
npm package: @subbul/express-plugin
Description: Express plugin for [Subbul](https://subbul.com) - track your APIs core metrics with a few lines of code.
Latest version: 1.1.0

# Subbul Express Plugin

Express plugin for [Subbul](https://subbul.com) - track your APIs core metrics with a few lines of code.

## Overview

Plug in the SDK into your Express 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](https://subbul.com) dashboard.

## Quick start

```js
import express from 'express';
import { Subbul, SubbulAllMetricsMiddleware } from '@subbul/express-plugin';

const app = express();

const subbul = Subbul({
  licenseKey: '<LICENSE_KEY>'
});

subbul.use(SubbulAllMetricsMiddleware());

await subbul.configure({ app });

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

app.listen('3000', () => {
  console.log('App started on port 3000')
})
```

## Documentation

Visit [the documentation](https://subbul.com/documentation/integrate/express) for an extensive overview of this package.