Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Conversation

@maciejwalkowiak
Copy link
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Add option to set user information via SentryUserProvider hook & refactor setting user information on events.

💡 Motivation and Context

Users will have a simple way to define a bean that returns user information.

Same mechanism is used by Sentry Spring integration to set user information from HttpRequest if send-default-pii is set to true.

💚 How did you test it?

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing
  • No breaking changes

🔮 Next steps

Copy link
Contributor

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks way easier to set the user via provider, good ref.

@bruno-garcia bruno-garcia merged commit ae0219d into feat/sentry-java Sep 9, 2020
@bruno-garcia bruno-garcia deleted the spring-user-hook branch September 9, 2020 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants