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

filterLocal: true gets ignored #17

Closed
aheissenberger opened this issue Sep 17, 2017 · 1 comment
Closed

filterLocal: true gets ignored #17

aheissenberger opened this issue Sep 17, 2017 · 1 comment
Labels

Comments

@aheissenberger
Copy link
Contributor

What is wrong with my code that the configuration for "filterLocal" gets ignored?
Or how can I access the right instance of the wrapper in my App Object?

This is my excerpt from serverless.yml:

  sentry:
    dsn: https://XXX@sentry.io/YYYYY
    organization: ORG
    project: PRJ
    authToken: *****
    release: true
    filterLocal: true

starting server less offline:

...
Serverless: GET /getYYYY/b/a (λ: getYYYY)
Serverless: The first request might take a few extra seconds
Sentry **disabled in local environment**
...

this is the code in the handler.js:

import 'source-map-support/register';
import Raven from 'raven';
import RavenLambdaWrapper from 'serverless-sentry-lib';

import AppHandler from './app';

const handler = new AppHandler({});
export const getYYYY = RavenLambdaWrapper.handler(Raven, handler.getwlanuser() );

this is the code in the app.js:

import Raven from 'raven';

export default class {

  getYYYY() {
    return (event, context, cb) => { 
       Raven.captureMessage('Test Start');
    }
  }
}
@arabold arabold added the bug label Sep 21, 2017
arabold pushed a commit that referenced this issue Oct 11, 2017
* Version falls back to git hash if no tag is set for current head (#15).
* Fixed reporting bugs in local environment despite config telling otherwise (#17).
  This requires an update of `serverless-sentry-lib` as well!
arabold pushed a commit that referenced this issue Oct 11, 2017
* Version falls back to git hash if no tag is set for current head (#15).
* Fixed reporting bugs in local environment despite config telling otherwise (#17).
  This requires an update of `serverless-sentry-lib` as well!
@arabold
Copy link
Owner

arabold commented Oct 11, 2017

@aheissenberger , sorry for the delay. This has been addressed in version 1.0.0 which I've relased a few minutes ago.

@arabold arabold closed this as completed Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants