Skip to content

Node: Express not reporting ip address by default #2462

Closed
@chris-smith-zocdoc

Description

@chris-smith-zocdoc

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.12.5

Description

Sentry isn't reporting the ipAddress by default with the node integration. Because of this check

if (options.user && req.user) {
event.user = {
...event.user,
...extractUserData(req, options.user),
};
}
it requires the user to be set on the request. If this is intended behavior, it should be called out on the node docs. On the old Raven sdk, this was reported by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions