Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report user_id to New Relic for error tracking #27

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

hammady
Copy link
Member

@hammady hammady commented Oct 25, 2024

This conditionally reports the end user id which attaches a new attribute "enduser.id" that is recognized by New Relic error tracking. It is reported if any of the following keys are found in the custom attributes reported within the transaction:

  • user_id
  • userId

These can be reported using the .report, .report_raw methods, or through the additional attributes from the delayed job table (extra_delayed_job_fields Worker constructor argument).

This allows errors to be linked to users to show number of impacted users for each error.

@maboelnour maboelnour merged commit e73b54a into master Oct 28, 2024
5 checks passed
@hammady hammady deleted the tasks/6057 branch October 28, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants