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

Context.SetUsername takes precedence #973

Merged
merged 3 commits into from Jun 8, 2021

Conversation

axw
Copy link
Member

@axw axw commented Jun 8, 2021

If Context.SetUsername is called explicitly, don't automatically set the username based on HTTP user info (which may or may not exist.)

Fixes #970

If Context.SetUsername is called explicitly,
don't automatically set the username based on
HTTP user info (which may or may not exist.)
@elastic-apm-tech elastic-apm-tech added this to In Progress in APM-Agents (OLD) Jun 8, 2021
@apmmachine
Copy link
Collaborator

apmmachine commented Jun 8, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #973 updated

  • Start Time: 2021-06-08T02:57:52.415+0000

  • Duration: 28 min 16 sec

  • Commit: 4de14b8

Test stats 🧪

Test Results
Failed 0
Passed 10778
Skipped 266
Total 11044

Trends 🧪

Image of Build Times

Image of Tests

@axw axw requested a review from a team June 8, 2021 02:49
@axw axw merged commit ccd2fa7 into elastic:master Jun 8, 2021
APM-Agents (OLD) automation moved this from In Progress to Done Jun 8, 2021
@axw axw deleted the context-setusername-precedence branch June 8, 2021 06:49
stuartnelson3 pushed a commit that referenced this pull request Jul 30, 2021
* Context.SetUsername takes precedence

If Context.SetUsername is called explicitly,
don't automatically set the username based on
HTTP user info (which may or may not exist.)

* Update CHANGELOG.asciidoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

apm.Context.SetHTTPRequest wipes c.user.Username set manually
3 participants