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: allow config to be passed to requestHandler #243

Merged
merged 10 commits into from Nov 4, 2020
Merged

feat: allow config to be passed to requestHandler #243

merged 10 commits into from Nov 4, 2020

Conversation

teajaymars
Copy link

RequestHandler takes a lot of interesting options such as { ip: true }. With this small tweak it is possible to pass in these values to Sentry's handler.

@rchl
Copy link
Member

rchl commented Oct 23, 2020

Would also need:

  • documenation
  • extending type declaration
  • adding default (empty object I guess) configuration

@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   55.55%   55.55%           
=======================================
  Files           1        1           
  Lines          27       27           
  Branches        8        8           
=======================================
  Hits           15       15           
  Misses          9        9           
  Partials        3        3           
Impacted Files Coverage Δ
lib/module.js 55.55% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 281656a...831e2b3. Read the comment docs.

types/sentry.d.ts Outdated Show resolved Hide resolved
@teajaymars
Copy link
Author

teajaymars commented Oct 23, 2020 via email

@teajaymars
Copy link
Author

For reference - 21 days ago getsentry/sentry-javascript@b4a29be

@rchl
Copy link
Member

rchl commented Oct 23, 2020

But that's ok because master branch of this module has updated to latest sentry dependencies so those types will be available.

types/sentry.d.ts Outdated Show resolved Hide resolved
@rchl rchl changed the title Allow config to be passed to requestHandler feat: allow config to be passed to requestHandler Nov 4, 2020
@rchl rchl merged commit 9daaf4b into nuxt-community:master Nov 4, 2020
@rchl
Copy link
Member

rchl commented Nov 4, 2020

Thanks!

@teajaymars
Copy link
Author

Thanks for sorting this out! I'm sorry I dropped off, I have just finished moving house, haven't had internet for a few days.

Appreciate the new feature!

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.

None yet

3 participants