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

NR-64061 Add user tracking to transactions and errors via the "enduser.id" attribute #1188

Merged
merged 17 commits into from
Mar 28, 2023

Conversation

obenkenobi
Copy link
Contributor

@obenkenobi obenkenobi commented Mar 21, 2023

Overview

This PR adds user tracking to transactions and errors in a way that will be consistent to other APM agents.

A new method in our public API is added called NewRelic.setUserId(String userId) that sets an enduser.id attribute to a transaction. It in turns passes that attribute into errors linked to that transaction.

In addition, the servler-user and servlet-user-5.0 instrumentation was modified to also set the enduser.id attribute using the name of a provided principle in a Servlet / Filter.

@obenkenobi obenkenobi changed the title NR-64061 Add user tracking to transactions and errors NR-64061 Add user tracking to transactions and errors via the "enduser.id" attribute Mar 23, 2023
@obenkenobi obenkenobi requested a review from meiao March 27, 2023 21:29
@obenkenobi obenkenobi merged commit a7aacd4 into main Mar 28, 2023
@obenkenobi obenkenobi deleted the NR-64061-error-userid-attr branch May 2, 2024 21:29
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.

3 participants