Skip to content

Instantly share code, notes, and snippets.

@juliantellez
Created February 8, 2019 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliantellez/56f0f428bd8d6e734c7c3afe59881f74 to your computer and use it in GitHub Desktop.
Save juliantellez/56f0f428bd8d6e734c7c3afe59881f74 to your computer and use it in GitHub Desktop.
Using Lambcycle Plugins
import lambcycle from 'lambcycle'
import sentryPlugin from './sentryPlugin'
const myApplicationLogic = async (event, context) => {
return await someLogic()
}
const handler = lambcycle(myApplicationLogic)
.register([
sentryPlugin({
key: process.env.SENTRY_KEY,
project: process.env.SENTRY_PROJECT,
})
]);
export default handler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment