Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sentry logging #13

Closed
wants to merge 5 commits into from
Closed

Conversation

jakebolam
Copy link
Contributor

@jakebolam jakebolam commented Jan 14, 2019

Fixes #11

index.js Show resolved Hide resolved
index.js Outdated
}
return context.done(null, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

un used code path

index.js Outdated Show resolved Hide resolved
@jakebolam jakebolam changed the title WIP feat: add sentry logging, add ability to use smee proxy feat: add sentry logging Jan 14, 2019
@jakebolam
Copy link
Contributor Author

@JasonEtco added sentry support

@jakebolam
Copy link
Contributor Author

Bump @JasonEtco any chance we can get this in?

@JasonEtco
Copy link
Member

No need to bump @jakebolam - its only been a few days since you've opened this. I'm not sure that this library should include the Sentry plugin by default - its more of a size concern than anything else. @probot/maintainers feel free to weigh in!

In the meantime, you can load the plugin yourself:

module.exports = app => {
  if (process.env.SENTRY_DSN) {
    require('probot/lib/apps/sentry')(app)
  }

  // Your regular app code...
  app.on('*', () => {})
}

@gr2m
Copy link
Contributor

gr2m commented Jan 20, 2019

I agree that it should not be included by default for a serverless environment

@JasonEtco
Copy link
Member

Going to close this out, given that there's a workaround above. And it seems like @gr2m and I agree that this doesn't need to be included in the extension. Thanks for starting the conversation @jakebolam ❤️

@JasonEtco JasonEtco closed this Jan 28, 2019
@tcbyrd
Copy link
Collaborator

tcbyrd commented Jan 28, 2019

I've been playing around with Lambda's layers and I think that's the route I'd like to support for things like Sentry. There are some existing solutions that have started implementing things this way like IO Pipe1 and Datadog2. I know other FaaS providers are working on similar solutions, so that will probably be the "right" way to do this so the function can remain as small as possible.

@jakebolam
Copy link
Contributor Author

no worries, sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants