question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: include IP option

See original GitHub issue

I’m using @sentry/node in a worker thread in an Electron app. Worker threads in electron don’t have the electron module present so I cannot use @sentry/electron there. I cannot use @sentry/browser either because the threads don’t have a window object or a DOM.

Now all events that are sent from the worker thread don’t include the IP address. @HazAT recommended I should use the beforeSend option in the SDK and manually fetch the IP address and attach it.

This seems like potential for improvement in the library. A includeIP option would significantly reduce complexity here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Jul 22, 2020

@KishanBagaria for @sentry/browser it’s doing automatic backfilling. However, I asked around and apparently we do implement automatic IP fetching for other SDKs with a “magic value”.

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'));

This should make it work for you 😃

0reactions
kamilogorekcommented, Jul 22, 2020

Awesome, cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPAM feature Request - IP address request option for end user
What I would like to see is a web page for I.T guest users (I.T staff that don't have access to Solarwinds Orion)...
Read more >
Feature Request: New Topology Option needed
I am using the Topology Setting for UC320W Routes Voice Only even thought I have an SBS server in place and a Sonicwall...
Read more >
Fetching IP Address in Reports - ConnectWise Control
Fetching IP Address in Reports ... Request: Generate reports that include the IP Address of the host/user that is connect to the session....
Read more >
Feature requests - DD-WRT Wiki
An option to set a static IP-address to a mac address/host name for 15 - 20 users! I would add to requested feature...
Read more >
Prevent auto-complete and auto-submit to specific IP ...
Feature Request - Kee should have the option to prevent the filling in or submitting of forms for specific IP addresses.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found