Method: Sentry::Scope#update_from_scope

Defined in:
lib/sentry/scope.rb

#update_from_scope(scope) ⇒ void

This method returns an undefined value.

Updates the scope’s data from a given scope.

Parameters:



144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/sentry/scope.rb', line 144

def update_from_scope(scope)
  self.breadcrumbs = scope.breadcrumbs
  self.contexts = scope.contexts
  self.extra = scope.extra
  self.tags = scope.tags
  self.user = scope.user
  self.transaction_name = scope.transaction_name
  self.transaction_source = scope.transaction_source
  self.fingerprint = scope.fingerprint
  self.span = scope.span
  self.propagation_context = scope.propagation_context
  self.attachments = scope.attachments
end