Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitwala/sentry-serverless

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitwala/sentry-serverless

Sentry wrapper for serverless functions.

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-54.17%
Maintainers
2
Weekly downloads
 
Created
Source

sentry-serverless

Sentry wrapper for serverless functions.

This project was bootstrapped with TSDX.

Installation

yarn add @bitwala/sentry-serverless

Usage

import * as Sentry from '@sentry/node';
import { sentryHandler } from '@bitwala/sentry-serverless';

Sentry.init({
  dsn: 'YOUR DSN',
});

// Your entry point for the serverless function
export const hello = sentryHandler(async event => {
  throw new Error('asd');
});

// You can also pass some options that will be forwarded to sentry
export const hello = sentryHandler(
  async event => {
    throw new Error('asd');
  },
  {
    // Will be set using the sentry "setTags" method
    tags: { myTag: 'myValue' },
  }
);

Local Development

yarn start

Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.

yarn build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

yarn test

Runs the test watcher (Jest) in an interactive mode.

Release

We use np to release the package.

yarn release

FAQs

Package last updated on 30 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc