2.3.5 • Published 2 years ago

@ailo/koa-sentry-middleware v2.3.5

Weekly downloads
85
License
MIT
Repository
github
Last release
2 years ago

@ailo/koa-sentry-middleware

Middleware for Koa HTTP server that:

  • configures Sentry scope with Koa HTTP request information,
  • catches errors that happen in Koa request-response cycle,
  • wraps HTTP request-response in a Sentry Transaction.

Usage example

  1. Setup Sentry (@sentry/node and @sentry/tracing packages - refer to Sentry docs).

  2. yarn add @ailo/koa-sentry-middleware

  3. import { applyKoaSentryMiddleware } from "@ailo/koa-sentry-middleware";
    import { monitoring } from "./utils/monitoring";
    
    export const app = new Koa();
    applyKoaSentryMiddleware(app, { monitoring });

Development

yarn
yarn start

Testing

yarn lint # prettier and eslint
yarn test # unit tests
yarn test:watch # unit tests in watch mode

Releasing

Note: Releasing is done manually (CI isn't configured yet). Linters, tests, build and so on are run during each git push / yarn release.

yarn release # will automatically ask you about version bump, run tests and build, and push new version to git & npm
2.3.4

2 years ago

2.3.5

2 years ago

2.3.3

4 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago