We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48063a2 + 10e025e commit 37508caCopy full SHA for 37508ca
1 file changed
sentry-ruby/lib/sentry/scope.rb
@@ -124,8 +124,8 @@ def clear_breadcrumbs
124
def dup
125
copy = super
126
copy.breadcrumbs = breadcrumbs.dup
127
- # contexts contains os/runtime (class-level frozen hashes) — shallow dup of outer hash is sufficient
128
- # since inner hashes are not mutated after being set
+ # Shallow dup is sufficient for these containers — inner values are not
+ # mutated after scope duplication, only replaced via merge! or assignment
129
copy.contexts = contexts.dup
130
copy.extra = extra.dup
131
copy.tags = tags.dup
0 commit comments