Closed drmrbrewer closed 2 years ago
Hey, thanks for writing in!
You're right that there is no sendDefaultPii
option in the JavaScript SDKs. You'll have to do this yourself. Please see our docs on how to attach IP addresses to your Sentry event.
Like so:
import * as Sentry from '@sentry/node';
Sentry.init({
dsn: "__YOUR_DSN__",
// the rest of config
});
Sentry.setUser({ ip_address: '{{auto}}' }); // it has to be done just once
Sentry.captureException(new Error('wat'));
Thanks, works nicely!
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
Possibly not a bug but just a missing feature, but there does not appear to be any way of enabling
sendDefaultPii
in the node.js configuration options. Does this mean that geolocation functionality just isn't available for node.js?In the above docs for geolocation it states:
This links through to some info about having to enable
send_default_pii
but this is a python configuration option and there doesn't appear to be any equivalentsendDefaultPii
option for node.js?Or is there some other way to do this for node.js?