Method: Sentry::Scope#dup

Defined in:
lib/sentry/scope.rb

#dupScope

Returns:

[View source]

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/sentry/scope.rb', line 96

def dup
  copy = super
  copy.breadcrumbs = breadcrumbs.dup
  copy.contexts = contexts.deep_dup
  copy.extra = extra.deep_dup
  copy.tags = tags.deep_dup
  copy.user = user.deep_dup
  copy.transaction_name = transaction_name.dup
  copy.transaction_source = transaction_source.dup
  copy.fingerprint = fingerprint.deep_dup
  copy.span = span.deep_dup
  copy.session = session.deep_dup
  copy.propagation_context = propagation_context.deep_dup
  copy.attachments = attachments.dup
  copy
end