arabold / serverless-sentry-lib

MIT License
32 stars 15 forks source link

Use scope attributes from additional options #27

Closed blelump closed 4 years ago

blelump commented 4 years ago

Add support for:

const withSentryOptions = {
  scope: {
    extras: { ... },
    tags: { ... },
    user: { ... },
  }
}

It seems currently they are just ignored?

arabold commented 4 years ago

Thanks for the PR. That makes sense and is indeed an oversight on my side. I'll do some modifications though and move the assignment of custom scope options a little bit later, so you can explicitly overwrite anything that is otherwise set automatically.

arabold commented 4 years ago

Again, thanks for adding this PR. If you get a chance, can you please check v2.2.0 of serverless-sentry-lib if this fixes your issue? I've added the changes and released it a few minutes ago.

blelump commented 4 years ago

@arabold all good, thanks!