Skip to content

Add ingest_settings property on log envelope container to infer IP addresses #20277

@Lms24

Description

@Lms24

For Relay to infer IP and user agent data from the incoming log envelopes, the envelope must tell Relay that it should do this. This was spec'd out and agreed upon to happen in. the ingest_settings object on the log items container (the log envelope item). See the spec for details.

Worth noting:

  • This must only happen in browser SDKs!
  • This is also relevant for spans (JS-2154) and metrics (JS-2155 )

For logs, we initially implemented it in relay to always infer the IP and user agent data. Which is also wrong. But for backwards compatibility, we must continue doing this for logs, unless SDKs send the version: 2 (and above) property, in which case, ip and UA inferral becomes explicit again.

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions