Skip to content

Conversation

@berg
Copy link

@berg berg commented Nov 17, 2014

We often include a non-overlapping set of tags when reporting
different types of events. It turns out that Event.initialize
was mutating the Configuration object's state instead of creating
a local copy.

We often include a non-overlapping set of tags when reporting
different types of events. It turns out that Event.initialize
was mutating the Configuration object's state instead of creating
a local copy.
Copy link

Choose a reason for hiding this comment

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

What do you think about solving this for all args? It doesn't seem correct for Event.initialize() to change its params at all. Eg @user, @extra, etc.

Copy link
Author

Choose a reason for hiding this comment

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

I think the ownership there is a bit more clear, but not opposed.

nateberkopec added a commit that referenced this pull request Nov 18, 2014
Don't mutate configuration tags hash on event creation
@nateberkopec nateberkopec merged commit c1a46cd into getsentry:master Nov 18, 2014
@nateberkopec
Copy link
Contributor

Thanks!

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.

4 participants