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
Conversation
Would also need:
|
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
Quite right, but those types were only `export`ed within the last couple of
weeks. The version on my local checkout _does not_ export those types so
I've chosen to duplicate them for backward compatibility.
…On Fri, 23 Oct 2020 at 13:02, Rafał Chłodnicki ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In types/sentry.d.ts
<#243 (comment)>
:
> @@ -13,6 +13,17 @@ export interface LazyConfiguration {
webpackPreload?: boolean
}
+type TransactionTypes = 'path' | 'methodPath' | 'handler'
+export interface RequestHandlerConfiguration {
You should import those types directly from @sentry/types instead of
duplicating them.
Only that it seems like you won't be able to use flushTimeout directly so
you have to add that manually.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#243 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWWCRSJQ7KPNWXGRT6F4TSMFWFVANCNFSM4S34TO7Q>
.
--
Tom Rees
CEO
http://datapress.com
|
For reference - 21 days ago getsentry/sentry-javascript@b4a29be |
But that's ok because master branch of this module has updated to latest sentry dependencies so those types will be available. |
Thanks! |
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! |
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.