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

Add named constructors to the Event class #1085

Merged

Conversation

ste93cry
Copy link
Collaborator

Little (breaking) change in the Event class: since we now have two types of events (event and transaction), I decided to add named constructors and make the default constructor private. This should make it easier in the future to encapsulate the minimum amount of information required for initializing each type of event and ensure that the newly created object is in a valid and consistent state from the beginning rather than rely on the hope that users will call all the appropriate setters depending on the situation

@ste93cry ste93cry added this to the 3.0 milestone Sep 10, 2020
@ste93cry ste93cry changed the base branch from master to 3.x September 10, 2020 09:28
@ste93cry ste93cry force-pushed the feature/add-named-constructors-to-event-class branch from d65ef99 to 5106bf6 Compare September 10, 2020 11:54
@ste93cry ste93cry merged commit 24cf09e into getsentry:3.x Sep 13, 2020
@ste93cry ste93cry deleted the feature/add-named-constructors-to-event-class branch September 13, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants