Skip to content

LogEvent does not correctly handle nested attributes (e.g., Rails ActionController params) #2801

@vivekmiyani

Description

@vivekmiyani

Issue Description

Sentry::LogEvent does not correctly handle nested attributes (such as Rails ActionController's params)

Reproduction Steps

  • Clone repo https://github.com/vivekmiyani/bookmarks.git

  • Run rails server

    SENTRY_DSN=REPLACE_ME rails s
    
  • Trigger endpoint

    curl -X POST http://localhost:3000/bookmarks.json -H "Content-Type: application/json" -d '{"bookmark":{"title":"Hello world","url":"Hello world"}}'
    
  • Notice that it doesn't show params passed in logs sentry page

Expected Behavior

Actual Behavior

  • Passed params is not present

Ruby Version

3.4.5

SDK Version

6.2.0

Integration and Its Version

Rails

Sentry Config

Sentry config

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions