Skip to content

Use settings.infer_ip instead of ip_address: {{auto}} #16252

Description

@mydea

Description

Today, in the browser SDK we set ip_address: {{auto}} to infer the ip address on the server.

There is now a new way to do this, documented here: https://develop.sentry.dev/sdk/data-model/event-payloads/sdk/#attributes

So we should:

  • Stop setting ip_address: {{auto}}
  • And instead set settings.infer_ip: 'auto' in the event metadata (if default PII is enabled)

This should make it easier to do that, as we can control this in a single place in the event processing pipeline instead of in multiple places (which is necessary today, as we also set this for standalone spans etc).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions